private function fill(array $args)
    {
        $properties = array_keys(get_object_vars($this));
        foreach ($args as $key => $value) {
            if (in_array($key, $properties)) {
                $this->{$key} = $value;
            }
        }
    }
private function fill(array $args)
    {
        $properties = array_keys(get_object_vars($this));
        foreach ($args as $key => $value) {
            if (in_array($key, $properties)) {
                $this->{$key} = $value;
            }
        }
    }
private function fill ( array $ args ) { $ properties = array_keys ( get_object_vars ( $ this ) ) ; foreach ( $ args as $ key => $ value ) { if ( in_array ( $ key , $ properties ) ) { $ this -> { $ key } = $ value ; } } }
Fill the object

@param array $args
Fill the object