-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathPropertyDocBlockExtractorInterface.php
More file actions
36 lines (32 loc) · 987 Bytes
/
PropertyDocBlockExtractorInterface.php
File metadata and controls
36 lines (32 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\PropertyInfo;
use phpDocumentor\Reflection\DocBlock;
/**
* Extract a property's doc block.
*
* A property's doc block may be located on a constructor promoted argument, on
* the property or on a mutator for that property.
*
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/
interface PropertyDocBlockExtractorInterface
{
/**
* Gets the first available doc block for a property. It finds the doc block
* by the following priority:
* - constructor promoted argument,
* - the class property,
* - a mutator method for that property.
*
* If no doc block is found, it will return null.
*/
public function getDocBlock(string $class, string $property): ?DocBlock;
}