Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @param Length $height
- *
- * @return Volume
- */
- public function withHeight(Length $height): self
- {
- $new = clone $this;
- $new->setHeight($height);
- return $new;
- }
- /**
- * @return Length
- */
- public function getHeight(): Length
- {
- return $this->height;
- }
- /**
- * @param Length $depth
- */
- private function setDepth(Length $depth)
- {
- $this->depth = $depth;
- $this->invalidateComputed();
- }
Add Comment
Please, Sign In to add comment