Jarves\ACLRequest::__construct PHP Method

__construct() public method

public __construct ( string $objectKey, string | array | null $primaryKey = null )
$objectKey string
$primaryKey string | array | null see ACLRequest::$primaryKey
    public function __construct($objectKey, $primaryKey = null)
    {
        if (empty($objectKey)) {
            throw new \InvalidArgumentException('objectKey can not be empty');
        }
        $this->objectKey = $objectKey;
        $this->setPrimaryKey($primaryKey);
    }