src/Token.php
protected function buildValidationReturn(array $body)
    {
        if (isset($body['user'])) {
            $body['user'] = new User($body['user']);
        }

        $body['application'] = new Application($body['application']);
        $body['expire_at'] = new \DateTime($body['expire_at']);

        return $body;
    }
protected function buildValidationReturn(array $body)
    {
        if (isset($body['user'])) {
            $body['user'] = new User($body['user']);
        }

        $body['application'] = new Application($body['application']);
        $body['expire_at'] = new \DateTime($body['expire_at']);

        return $body;
    }
protected function buildValidationReturn ( array $ body ) { if ( isset ( $ body [ 'user' ] ) ) { $ body [ 'user' ] = new User ( $ body [ 'user' ] ) ; } $ body [ 'application' ] = new Application ( $ body [ 'application' ] ) ; $ body [ 'expire_at' ] = new \ DateTime ( $ body [ 'expire_at' ] ) ; return $ body ; }
Build the validation return

@param array $body

@return array
Build the validation return