Debian Codegraph @

lib/3rdParty/composer/symfony/property-info/PropertyDocBlockExtractorInterface.php

raw symbols SCIP
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\PropertyInfo;
13
14 use phpDocumentor\Reflection\DocBlock;
15
16 /**
17 * Extract a property's doc block.
18 *
19 * A property's doc block may be located on a constructor promoted argument, on
20 * the property or on a mutator for that property.
21 *
22 * @author Tobias Nyholm <[email protected]>
23 */
24 interface PropertyDocBlockExtractorInterface
25 {
26 /**
27 * Gets the first available doc block for a property. It finds the doc block
28 * by the following priority:
29 * - constructor promoted argument,
30 * - the class property,
31 * - a mutator method for that property.
32 *
33 * If no doc block is found, it will return null.
34 */
35 public function getDocBlock(string $class, string $property): ?DocBlock;
36 }