src/Controller/Base.php
protected static function getRequestData($parameters)
    {
        //work with objects
        if (!is_object($parameters) && is_array($parameters)) {
            $parameters = (object) $parameters;
        }

        //Require data
        Request::requireParameters($parameters, ['data']);

        return $parameters->data;
    }
protected static function getRequestData($parameters)
    {
        //work with objects
        if (!is_object($parameters) && is_array($parameters)) {
            $parameters = (object) $parameters;
        }

        //Require data
        Request::requireParameters($parameters, ['data']);

        return $parameters->data;
    }
protected static function getRequestData ( $ parameters ) { //work with objects if ( ! is_object ( $ parameters ) && is_array ( $ parameters ) ) { $ parameters = ( object ) $ parameters ; } //Require data Request :: requireParameters ( $ parameters , [ 'data' ] ) ; return $ parameters -> data ; }
Get request primary data
@param  object $parameters Request parameters
@uses Request::requireParameters
@return object|object[]
Get request primary data