|
@@ -0,0 +1,34 @@
|
|
|
+<?php
|
|
|
+/**
|
|
|
+ * Created by PhpStorm.
|
|
|
+ * User: mrs
|
|
|
+ * Date: 28.12.2017
|
|
|
+ * Time: 13:46
|
|
|
+ */
|
|
|
+require_once('AbstractCoordinates.php');
|
|
|
+require_once('InterfaceSegmentLength.php');
|
|
|
+
|
|
|
+
|
|
|
+class Segment extends Coordinates implements SegmentLength
|
|
|
+{
|
|
|
+ public $segmentName;
|
|
|
+ public $points;
|
|
|
+ public $coordinatesPoints;
|
|
|
+ public $segmentLength;
|
|
|
+
|
|
|
+ public function __construct(Point $point1, Point $point2)
|
|
|
+ {
|
|
|
+ $this->points = [$point1, $point2];
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getCoordinates(): array
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getSegmentLength(): float
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+}
|