1 | <?php |
||
8 | class BC implements FinancialInstitutionInterface |
||
9 | { |
||
10 | const PATTERN = '/^[0-9]{3,5}$/'; |
||
11 | |||
12 | /** |
||
13 | * @var int |
||
14 | */ |
||
15 | protected $bc; |
||
16 | |||
17 | /** |
||
18 | * Constructor |
||
19 | * |
||
20 | * @param string $bic |
||
|
|||
21 | * |
||
22 | * @throws \InvalidArgumentException When the BC does contain invalid characters or the length does not match. |
||
23 | */ |
||
24 | 5 | public function __construct($bc) |
|
33 | |||
34 | /** |
||
35 | * Extracts the BC from an IBAN |
||
36 | * |
||
37 | * @param IBAN $iban |
||
38 | * |
||
39 | * @throws \InvalidArgumentException When the supplied IBAN is not from Switzerland |
||
40 | */ |
||
41 | 4 | public static function fromIBAN(IBAN $iban) |
|
49 | |||
50 | /** |
||
51 | * Returns a formatted representation of the BIC |
||
52 | * |
||
53 | * @return string The formatted BIC |
||
54 | */ |
||
55 | 3 | public function format() |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 2 | public function asDom(\DOMDocument $doc) |
|
75 | } |
||
76 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.