Segment.php 611 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: mrs
  5. * Date: 28.12.2017
  6. * Time: 13:46
  7. */
  8. require_once('AbstractCoordinates.php');
  9. require_once('InterfaceSegmentLength.php');
  10. class Segment extends Coordinates implements SegmentLength
  11. {
  12. public $segmentName;
  13. public $points;
  14. public $coordinatesPoints;
  15. public $segmentLength;
  16. public function __construct(Point $point1, Point $point2)
  17. {
  18. $this->points = [$point1, $point2];
  19. }
  20. public function getCoordinates(): array
  21. {
  22. }
  23. public function getSegmentLength(): float
  24. {
  25. }
  26. }