Initial Version
This commit is contained in:
22
shared/lib/Resource/Selector/CollectionSelector.php
Normal file
22
shared/lib/Resource/Selector/CollectionSelector.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace KTXF\Resource\Selector;
|
||||
|
||||
/**
|
||||
* Collection-level selector
|
||||
*/
|
||||
class CollectionSelector extends SelectorAbstract {
|
||||
|
||||
protected array $keyTypes = ['string', 'integer'];
|
||||
protected array $valueTypes = ['boolean', EntitySelector::class];
|
||||
protected string $nestedSelector = EntitySelector::class;
|
||||
protected string $selectorName = 'CollectionSelector';
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user