Library/Phalcon/Commands/Command.php
public function checkRequired($required)
    {
        foreach ($required as $fieldRequired) {
            if (!isset($this->_parameters[$fieldRequired])) {
                throw new CommandsException("The parameter '$fieldRequired' is required for this script");
            }
        }
    }
public function checkRequired($required)
    {
        foreach ($required as $fieldRequired) {
            if (!isset($this->_parameters[$fieldRequired])) {
                throw new CommandsException("The parameter '$fieldRequired' is required for this script");
            }
        }
    }
public function checkRequired ( $ required ) { foreach ( $ required as $ fieldRequired ) { if ( ! isset ( $ this -> _parameters [ $ fieldRequired ] ) ) { throw new CommandsException ( "The parameter '$fieldRequired' is required for this script" ) ; } } }
Check that a set of parameters has been received.

@param $required

@throws CommandsException
Check that a set of parameters has been received .