Debian Codegraph @

vendor/symfony/type-info/Type/WrappingTypeInterface.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 wrapping another type.
18 *
19 * @author Mathias Arlaud <[email protected]>
20 *
21 * @template T of Type
22 */
23 interface WrappingTypeInterface
24 {
25 /**
26 * @return T
27 */
28 public function getWrappedType(): Type;
29
30 /**
31 * @param callable(Type): bool $specification
32 */
33 public function wrappedTypeIsSatisfiedBy(callable $specification): bool;
34 }