1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-25 21:49:04 +02:00

separate client is not good way

This commit is contained in:
Peter Gribanov
2017-09-04 20:42:33 +03:00
committed by GitHub
parent cb933d10a5
commit cb272de829

View File

@@ -1199,7 +1199,10 @@ foreach ($rectangles as $rectangle) {
}
```
**Good:**
**Not good:**
You can separate client for differen shapes.
But this is not a best solution becous the square is still must be a subtype of the rectangle.
```php
interface Shape