final public function check(array $options) {
        foreach ($options as $property => $value) {
            if ((is_array($value) && !in_array($this->$property, $value)) ||
                    (!is_array($value) && $this->$property !== $value))
                return false;
        }

        return true;
    }
final public function check(array $options) {
        foreach ($options as $property => $value) {
            if ((is_array($value) && !in_array($this->$property, $value)) ||
                    (!is_array($value) && $this->$property !== $value))
                return false;
        }

        return true;
    }
final public function check ( array $ options ) { foreach ( $ options as $ property => $ value ) { if ( ( is_array ( $ value ) && ! in_array ( $ this -> $ property , $ value ) ) || ( ! is_array ( $ value ) && $ this -> $ property !== $ value ) ) return false ; } return true ; }
Checks if properties exist and their values are as required
@param array $options
@return boolean
Checks if properties exist and their values are as required