1 | <?php |
||
26 | class TensideJsonConfig extends SourceJson |
||
27 | { |
||
28 | /** |
||
29 | * Create a new instance. |
||
30 | * |
||
31 | * @param string $directory The directory where the tenside.json shall be placed. |
||
32 | */ |
||
33 | public function __construct($directory) |
||
37 | |||
38 | /** |
||
39 | * Retrieve the secret. |
||
40 | * |
||
41 | * @return string |
||
|
|||
42 | */ |
||
43 | public function getSecret() |
||
47 | |||
48 | /** |
||
49 | * Retrieve the secret. |
||
50 | * |
||
51 | * @return string|null |
||
52 | */ |
||
53 | public function getLocalDomain() |
||
57 | } |
||
58 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.If the return type contains the type array, this check recommends the use of a more specific type like
String[]
orarray<String>
.