protected function propertiesPassRequired()
    {
        $keys = array();

        foreach ($this->parametersRequired as $key) {

            if ($this->accessPropertyByKey($key)) {
                return true;
            }

            $keys['currentKey'] = $key;
        }

        throw new MissingParameterException('The ' . $keys['currentKey'] . ' parameter is required');
    }
protected function propertiesPassRequired()
    {
        $keys = array();

        foreach ($this->parametersRequired as $key) {

            if ($this->accessPropertyByKey($key)) {
                return true;
            }

            $keys['currentKey'] = $key;
        }

        throw new MissingParameterException('The ' . $keys['currentKey'] . ' parameter is required');
    }
protected function propertiesPassRequired ( ) { $ keys = array ( ) ; foreach ( $ this -> parametersRequired as $ key ) { if ( $ this -> accessPropertyByKey ( $ key ) ) { return true ; } $ keys [ 'currentKey' ] = $ key ; } throw new MissingParameterException ( 'The ' . $ keys [ 'currentKey' ] . ' parameter is required' ) ; }
This method checks that all properties marked as
required have been assigned a value.

A protected $parametersRequired property must contain the names of
the required parameters on the class that will use this trait method.
and all parameters must each have a defined get accessor on the
class object instance

@return bool
@throws \OVAC\HubtelPayment\Exception\MissingParameterException
This method checks that all properties marked as required have been assigned a value .