1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-25 21:49:04 +02:00
This commit is contained in:
Spomky
2018-02-23 22:36:39 +01:00
parent e191bf8464
commit 88c7865558

View File

@@ -1475,7 +1475,7 @@ final class Car
}
/**
* @return string The color of the vehicule
* @return string The color of the vehicle
*/
public function getColor()
{
@@ -1487,15 +1487,15 @@ final class Car
**Good:**
```php
interface Vehicule
interface Vehicle
{
/**
* @return string The color of the vehicule
* @return string The color of the vehicle
*/
public function getColor();
}
final class Car interface Vehicule
final class Car implements Vehicle
{
private $color;