src/Api/Service/AccessService.php
public function create(Access $access, Parameters $parameters = null): Access
    {
        $options = [];
        $options['json'] = (array) static::toObject($access);

        if ($parameters) {
            $options['query'] = (array) $parameters->toObject(true);
        }

        $object = $this->execute('POST', static::RESOURCE_LIST, $options);
        /** @var \Ds\Component\Api\Model\Access $access */
        $access = static::toModel($object);

        return $access;
    }
public function create(Access $access, Parameters $parameters = null): Access
    {
        $options = [];
        $options['json'] = (array) static::toObject($access);

        if ($parameters) {
            $options['query'] = (array) $parameters->toObject(true);
        }

        $object = $this->execute('POST', static::RESOURCE_LIST, $options);
        /** @var \Ds\Component\Api\Model\Access $access */
        $access = static::toModel($object);

        return $access;
    }
public function create ( Access $ access , Parameters $ parameters = null ) : Access { $ options = [ ] ; $ options [ 'json' ] = ( array ) static :: toObject ( $ access ) ; if ( $ parameters ) { $ options [ 'query' ] = ( array ) $ parameters -> toObject ( true ) ; } $ object = $ this -> execute ( 'POST' , static :: RESOURCE_LIST , $ options ) ; /** @var \Ds\Component\Api\Model\Access $access */ $ access = static :: toModel ( $ object ) ; return $ access ; }
Create access

@param \Ds\Component\Api\Model\Access $access
@param \Ds\Component\Api\Query\AccessParameters $parameters
@return \Ds\Component\Api\Model\Access
Create access