BrokenLine.php 551 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: mrs
  5. * Date: 28.12.2017
  6. * Time: 14:01
  7. */
  8. require_once('Segment.php');
  9. require_once('InterfaceAllSegments.php');
  10. class BrokenLine extends Segment implements AllSegments
  11. {
  12. public $points;
  13. public $segments = [];
  14. public $allSegmentsLength;
  15. public function __construct(Point ...$points)
  16. {
  17. $this->points = $points;
  18. }
  19. public function getAllSegments(): array
  20. {
  21. }
  22. public function getAllSegmentsLength(): float
  23. {
  24. }
  25. }