Quellcode durchsuchen

Interfaces geometric figure

bufon2211 vor 6 Jahren
Ursprung
Commit
9ae106504f

+ 14 - 0
Interface/InterfaceAllSegments.php

@@ -0,0 +1,14 @@
+<?php
+/**
+ * Created by PhpStorm.
+ * User: mrs
+ * Date: 28.12.2017
+ * Time: 14:00
+ */
+
+interface AllSegments
+{
+    public function getAllSegments(): array;
+
+    public function getAllSegmentsLength(): float;
+}

+ 12 - 0
Interface/InterfacePerimeter.php

@@ -0,0 +1,12 @@
+<?php
+/**
+ * Created by PhpStorm.
+ * User: mrs
+ * Date: 28.12.2017
+ * Time: 11:25
+ */
+
+interface Perimeter
+{
+    public function getPerimeter(): float;
+}

+ 13 - 0
Interface/InterfaceSegmentLength.php

@@ -0,0 +1,13 @@
+<?php
+/**
+ * Created by PhpStorm.
+ * User: mrs
+ * Date: 28.12.2017
+ * Time: 13:44
+ */
+
+interface SegmentLength
+
+{
+    public function getSegmentLength(): float;
+}