1 | <?php |
||
22 | class UserEditCountPropertyAnnotator implements PropertyAnnotator { |
||
23 | |||
24 | /** |
||
25 | * @var AppFactory |
||
26 | */ |
||
27 | private $appFactory; |
||
28 | |||
29 | /** |
||
30 | * @since 2.0 |
||
31 | * |
||
32 | * @param AppFactory $appFactory |
||
33 | */ |
||
34 | public function __construct( AppFactory $appFactory ) { |
||
37 | |||
38 | /** |
||
39 | * @since 2.0 |
||
40 | * |
||
41 | * {@inheritDoc} |
||
42 | */ |
||
43 | public function isAnnotatorFor( DIProperty $property ) { |
||
46 | |||
47 | /** |
||
48 | * @since 2.0 |
||
49 | * |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
||
71 | |||
72 | } |
||
73 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: