12345678910111213141516171819202122232425262728293031323334 |
- <?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
- {
- }
- }
|