|
@@ -0,0 +1,35 @@
|
|
|
+<?php
|
|
|
+/**
|
|
|
+ * Created by PhpStorm.
|
|
|
+ * User: mrs
|
|
|
+ * Date: 28.12.2017
|
|
|
+ * Time: 14:01
|
|
|
+ */
|
|
|
+
|
|
|
+require_once('Segment.php');
|
|
|
+require_once('InterfaceAllSegments.php');
|
|
|
+
|
|
|
+class BrokenLine extends Segment implements AllSegments
|
|
|
+
|
|
|
+{
|
|
|
+ public $points;
|
|
|
+ public $segments = [];
|
|
|
+ public $allSegmentsLength;
|
|
|
+
|
|
|
+ public function __construct(Point ...$points)
|
|
|
+ {
|
|
|
+ $this->points = $points;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getAllSegments(): array
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getAllSegmentsLength(): float
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|