Guest User

Untitled

a guest
Jun 21st, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. /**
  2. * @param Length $height
  3. *
  4. * @return Volume
  5. */
  6. public function withHeight(Length $height): self
  7. {
  8. $new = clone $this;
  9. $new->setHeight($height);
  10.  
  11. return $new;
  12. }
  13.  
  14. /**
  15. * @return Length
  16. */
  17. public function getHeight(): Length
  18. {
  19. return $this->height;
  20. }
  21.  
  22. /**
  23. * @param Length $depth
  24. */
  25. private function setDepth(Length $depth)
  26. {
  27. $this->depth = $depth;
  28. $this->invalidateComputed();
  29. }
Add Comment
Please, Sign In to add comment