1 | <?php |
||
9 | class MailService |
||
10 | { |
||
11 | /** |
||
12 | * @var AdapterInterface |
||
13 | */ |
||
14 | protected $adapter; |
||
15 | |||
16 | /** |
||
17 | * @var LoggerInterface |
||
18 | */ |
||
19 | protected $logger; |
||
20 | |||
21 | public function send(Message $message): bool |
||
33 | |||
34 | public function setAdapter(AdapterInterface $adapter): void |
||
38 | |||
39 | public function setLogger(LoggerInterface $logger): void |
||
43 | } |
||
44 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.