Debian Codegraph @

vendor/symfony/type-info/Type/CompositeTypeInterface.php

raw
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\TypeInfo\Type;
13
14 use Symfony\Component\TypeInfo\Type;
15
16 /**
17 * Represents a type composed of several other types.
18 *
19 * @author Mathias Arlaud <[email protected]>
20 *
21 * @template T of Type
22 */
23 interface CompositeTypeInterface
24 {
25 /**
26 * @return list<T>
27 */
28 public function getTypes(): array;
29
30 /**
31 * @param callable(Type): bool $specification
32 */
33 public function composedTypesAreSatisfiedBy(callable $specification): bool;
34 }