public function fillObjectProps($arguments) {
        foreach ($arguments as $key => $value) {
            if (!in_array($key, $this->fillable)) {
                throw new \Exception(_message(ExceptionMessages::INAPPROPRIATE_PROPERTY, $key));
            }

            $this->$key = $value;
        }
    }
public function fillObjectProps($arguments) {
        foreach ($arguments as $key => $value) {
            if (!in_array($key, $this->fillable)) {
                throw new \Exception(_message(ExceptionMessages::INAPPROPRIATE_PROPERTY, $key));
            }

            $this->$key = $value;
        }
    }
public function fillObjectProps ( $ arguments ) { foreach ( $ arguments as $ key => $ value ) { if ( ! in_array ( $ key , $ this -> fillable ) ) { throw new \ Exception ( _message ( ExceptionMessages :: INAPPROPRIATE_PROPERTY , $ key ) ) ; } $ this -> $ key = $ value ; } }
Fill Object Properties

Fills the properties with values

@param array $arguments
@return void
@throws \Exception When the property is not appropriate
Fill Object Properties