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:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user