mirror of
https://github.com/jupeter/clean-code-php.git
synced 2025-09-26 05:59:04 +02:00
Reference to Ocramius blog post added
This commit is contained in:
@@ -1462,6 +1462,8 @@ The `final` should be used whenever possible:
|
|||||||
|
|
||||||
The only condition is that your class should implement an interface and no other public methods are defined.
|
The only condition is that your class should implement an interface and no other public methods are defined.
|
||||||
|
|
||||||
|
For more informations you can read [the blog post](https://ocramius.github.io/blog/when-to-declare-classes-final/) on this topic written by [Marco Pivetta (Ocramius)](https://ocramius.github.io/).
|
||||||
|
|
||||||
**Bad:**
|
**Bad:**
|
||||||
|
|
||||||
```php
|
```php
|
||||||
|
Reference in New Issue
Block a user