Bläddra i källkod

inheritance classes of geometric shapes

bufon2211 6 år sedan
förälder
incheckning
2999a2d219
1 ändrade filer med 35 tillägg och 0 borttagningar
  1. 35 0
      BrokenLine.php

+ 35 - 0
BrokenLine.php

@@ -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
+    {
+
+    }
+
+
+}