src/core/AbstractView.php
public function setVariables(array $data): void
    {
        foreach ($data as $key => $value) {
            $this->$key = $value;
        }
    }
public function setVariables(array $data): void
    {
        foreach ($data as $key => $value) {
            $this->$key = $value;
        }
    }
public function setVariables ( array $ data ) : void { foreach ( $ data as $ key => $ value ) { $ this -> $ key = $ value ; } }
The method provides massive assignment user variables of the class.
@param array $data The users's variables of the class.
@return void
The method provides massive assignment user variables of the class .