Last active
April 27, 2021 01:56
-
-
Save mcsee/39d40cf2f0d4159c95d90243c59a4df5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class Window { | |
public $width; | |
public $height; | |
public $children; | |
public function getWidth() { | |
return $this->width; | |
} | |
public function getArea() { | |
return $this->width * $this->height; | |
} | |
public function getChildren() { | |
return $this->children; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment