protected function checkRequired()
    {
        $errors = new Exceptions();
        foreach ($this->getRequiredKeys() as $required) {
            if (!isset($this->$required)) {
                $errors->add(new Exception('Required property "' . $required . '" is missing'));
            }
        }
        if (!$errors->empty()) {
            throw $errors;
        }
        return true;
    }
protected function checkRequired()
    {
        $errors = new Exceptions();
        foreach ($this->getRequiredKeys() as $required) {
            if (!isset($this->$required)) {
                $errors->add(new Exception('Required property "' . $required . '" is missing'));
            }
        }
        if (!$errors->empty()) {
            throw $errors;
        }
        return true;
    }
protected function checkRequired ( ) { $ errors = new Exceptions ( ) ; foreach ( $ this -> getRequiredKeys ( ) as $ required ) { if ( ! isset ( $ this -> $ required ) ) { $ errors -> add ( new Exception ( 'Required property "' . $ required . '" is missing' ) ) ; } } if ( ! $ errors -> empty ( ) ) { throw $ errors ; } return true ; }
Checks if all required properties are set
@return bool
@throws \Runn\Core\Exceptions
Checks if all required properties are set