@@ -43,6 +43,7 @@ |
||
43 | 43 | * @param DocBlock\Tag[] $tags |
44 | 44 | * @param Types\Context $context The context in which the DocBlock occurs. |
45 | 45 | * @param Location $location The location within the file that this DocBlock occurs in. |
46 | + * @param DocBlock\Description $description |
|
46 | 47 | */ |
47 | 48 | public function __construct( |
48 | 49 | string $summary = '', |
@@ -46,6 +46,9 @@ discard block |
||
46 | 46 | /** @var string|null The version vector. */ |
47 | 47 | private $version; |
48 | 48 | |
49 | + /** |
|
50 | + * @param string $version |
|
51 | + */ |
|
49 | 52 | public function __construct(?string $version = null, ?Description $description = null) |
50 | 53 | { |
51 | 54 | Assert::nullOrNotEmpty($version); |
@@ -55,6 +58,9 @@ discard block |
||
55 | 58 | } |
56 | 59 | |
57 | 60 | /** |
61 | + * @param string $body |
|
62 | + * @param \Mockery\LegacyMockInterface $descriptionFactory |
|
63 | + * @param TypeContext $context |
|
58 | 64 | * @return static |
59 | 65 | */ |
60 | 66 | public static function create( |
@@ -46,6 +46,9 @@ discard block |
||
46 | 46 | /** @var string|null The version vector. */ |
47 | 47 | private $version; |
48 | 48 | |
49 | + /** |
|
50 | + * @param string $version |
|
51 | + */ |
|
49 | 52 | public function __construct(?string $version = null, ?Description $description = null) |
50 | 53 | { |
51 | 54 | Assert::nullOrNotEmpty($version); |
@@ -54,6 +57,11 @@ discard block |
||
54 | 57 | $this->description = $description; |
55 | 58 | } |
56 | 59 | |
60 | + /** |
|
61 | + * @param string $body |
|
62 | + * @param \Mockery\LegacyMockInterface $descriptionFactory |
|
63 | + * @param TypeContext $context |
|
64 | + */ |
|
57 | 65 | public static function create( |
58 | 66 | ?string $body, |
59 | 67 | ?DescriptionFactory $descriptionFactory = null, |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use phpDocumentor\Reflection\DocBlock\Tag; |
8 | 8 | use phpDocumentor\Reflection\DocBlock\Tags\Formatter; |
9 | 9 | use phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter; |
10 | -use phpDocumentor\Reflection\FqsenResolver; |
|
11 | 10 | use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod; |
12 | 11 | |
13 | 12 | final class CustomServiceClass implements Tag, StaticMethod |
@@ -6,7 +6,6 @@ |
||
6 | 6 | |
7 | 7 | use phpDocumentor\Reflection\DocBlock\Tag; |
8 | 8 | use phpDocumentor\Reflection\DocBlock\Tags\Formatter; |
9 | -use phpDocumentor\Reflection\FqsenResolver; |
|
10 | 9 | use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod; |
11 | 10 | |
12 | 11 | final class CustomServiceInterface implements Tag, StaticMethod |
@@ -56,6 +56,10 @@ |
||
56 | 56 | $this->isReference = $isReference; |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @param TypeResolver $typeResolver |
|
61 | + * @param TypeContext $context |
|
62 | + */ |
|
59 | 63 | public static function create( |
60 | 64 | string $body, |
61 | 65 | ?TypeResolver $typeResolver = null, |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | /** @var string|null */ |
36 | 36 | protected $variableName; |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $variableName |
|
40 | + */ |
|
38 | 41 | public function __construct(?string $variableName, ?Type $type = null, ?Description $description = null) |
39 | 42 | { |
40 | 43 | Assert::string($variableName); |
@@ -45,6 +48,10 @@ discard block |
||
45 | 48 | $this->description = $description; |
46 | 49 | } |
47 | 50 | |
51 | + /** |
|
52 | + * @param TypeResolver $typeResolver |
|
53 | + * @param TypeContext $context |
|
54 | + */ |
|
48 | 55 | public static function create( |
49 | 56 | string $body, |
50 | 57 | ?TypeResolver $typeResolver = null, |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | /** @var string */ |
36 | 36 | protected $variableName; |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $variableName |
|
40 | + */ |
|
38 | 41 | public function __construct(?string $variableName, ?Type $type = null, ?Description $description = null) |
39 | 42 | { |
40 | 43 | Assert::string($variableName); |
@@ -45,6 +48,10 @@ discard block |
||
45 | 48 | $this->description = $description; |
46 | 49 | } |
47 | 50 | |
51 | + /** |
|
52 | + * @param TypeResolver $typeResolver |
|
53 | + * @param TypeContext $context |
|
54 | + */ |
|
48 | 55 | public static function create( |
49 | 56 | string $body, |
50 | 57 | ?TypeResolver $typeResolver = null, |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | /** @var string|null */ |
36 | 36 | protected $variableName = ''; |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $variableName |
|
40 | + */ |
|
38 | 41 | public function __construct(?string $variableName, ?Type $type = null, ?Description $description = null) |
39 | 42 | { |
40 | 43 | Assert::string($variableName); |
@@ -45,6 +48,10 @@ discard block |
||
45 | 48 | $this->description = $description; |
46 | 49 | } |
47 | 50 | |
51 | + /** |
|
52 | + * @param TypeResolver $typeResolver |
|
53 | + * @param TypeContext $context |
|
54 | + */ |
|
48 | 55 | public static function create( |
49 | 56 | string $body, |
50 | 57 | ?TypeResolver $typeResolver = null, |