private function setProperties(array $data)
    {
        foreach ($data as $key => $value) {
            $this->setProperty($key, $value);
        }

        return $this;
    }
private function setProperties(array $data)
    {
        foreach ($data as $key => $value) {
            $this->setProperty($key, $value);
        }

        return $this;
    }
private function setProperties ( array $ data ) { foreach ( $ data as $ key => $ value ) { $ this -> setProperty ( $ key , $ value ) ; } return $ this ; }
Go through array and set all dynamic properties.

@param $data
@return $this
Go through array and set all dynamic properties .