src/Core/Model.php
public function parseArray($array, $options = [])
    {
        // default options
        $options['except'] = $options['except'] ?? [];

        foreach ($options['except'] as $value) {
            unset($array[$value]);
        }

        foreach ($array as $key => $value) {
            $this->properties[$key] = $this->castField($key, $value);
        }

        return $this;
    }
public function parseArray($array, $options = [])
    {
        // default options
        $options['except'] = $options['except'] ?? [];

        foreach ($options['except'] as $value) {
            unset($array[$value]);
        }

        foreach ($array as $key => $value) {
            $this->properties[$key] = $this->castField($key, $value);
        }

        return $this;
    }
public function parseArray ( $ array , $ options = [ ] ) { // default options $ options [ 'except' ] = $ options [ 'except' ] ?? [ ] ; foreach ( $ options [ 'except' ] as $ value ) { unset ( $ array [ $ value ] ) ; } foreach ( $ array as $ key => $ value ) { $ this -> properties [ $ key ] = $ this -> castField ( $ key , $ value ) ; } return $ this ; }
Extracts properties from array

@param $array
@param array $options
@return $this
Extracts properties from array