1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-10-01 16:36:42 +02:00

Update README.md

This commit is contained in:
Mariano Custiel
2017-09-12 16:54:17 +02:00
committed by GitHub
parent acf92a1997
commit 0d94f3315f

View File

@@ -1221,8 +1221,8 @@ abstract class Shape
class Rectangle extends Shape class Rectangle extends Shape
{ {
protected $width; private $width;
protected $height; private $height;
public function __construct($width, $height) public function __construct($width, $height)
{ {
@@ -1239,6 +1239,8 @@ class Rectangle extends Shape
class Square extends Shape class Square extends Shape
{ {
private $length;
public function __construct($length) public function __construct($length)
{ {
parent::__construct(); parent::__construct();