src/Genesis/API/Request.php
protected function verifyFieldRequirements()
    {
        if (isset($this->requiredFields)) {
            $this->requiredFields->setIteratorClass('RecursiveArrayIterator');

            $iterator = new \RecursiveIteratorIterator($this->requiredFields->getIterator());

            foreach ($iterator as $fieldName) {
                if (empty($this->$fieldName)) {
                    throw new \Genesis\Exceptions\ErrorParameter(
                        sprintf('Empty (null) required parameter: %s', $fieldName)
                    );
                }
            }
        }
    }
protected function verifyFieldRequirements()
    {
        if (isset($this->requiredFields)) {
            $this->requiredFields->setIteratorClass('RecursiveArrayIterator');

            $iterator = new \RecursiveIteratorIterator($this->requiredFields->getIterator());

            foreach ($iterator as $fieldName) {
                if (empty($this->$fieldName)) {
                    throw new \Genesis\Exceptions\ErrorParameter(
                        sprintf('Empty (null) required parameter: %s', $fieldName)
                    );
                }
            }
        }
    }
protected function verifyFieldRequirements ( ) { if ( isset ( $ this -> requiredFields ) ) { $ this -> requiredFields -> setIteratorClass ( 'RecursiveArrayIterator' ) ; $ iterator = new \ RecursiveIteratorIterator ( $ this -> requiredFields -> getIterator ( ) ) ; foreach ( $ iterator as $ fieldName ) { if ( empty ( $ this -> $ fieldName ) ) { throw new \ Genesis \ Exceptions \ ErrorParameter ( sprintf ( 'Empty (null) required parameter: %s' , $ fieldName ) ) ; } } } }
Verify that all required fields are populated

@throws \Genesis\Exceptions\ErrorParameter
Verify that all required fields are populated