|
@@ -0,0 +1,28 @@
|
|
|
+<?php
|
|
|
+/**
|
|
|
+ * Created by PhpStorm.
|
|
|
+ * User: mrs
|
|
|
+ * Date: 28.12.2017
|
|
|
+ * Time: 13:36
|
|
|
+ */
|
|
|
+
|
|
|
+require_once('Rectangle.php');
|
|
|
+
|
|
|
+class FigurePolygon extends Rectangle
|
|
|
+{
|
|
|
+
|
|
|
+ public $points;
|
|
|
+ public $lines;
|
|
|
+ public $segmentLength;
|
|
|
+ public $perimeter;
|
|
|
+
|
|
|
+ public function __construct(Point $points)
|
|
|
+ {
|
|
|
+ $this->points = $points;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getPerimeter(): float
|
|
|
+ {
|
|
|
+ parent::getPerimeter();
|
|
|
+ }
|
|
|
+}
|