Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active February 20, 2025 19:10
Show Gist options
  • Select an option

  • Save mcsee/39d40cf2f0d4159c95d90243c59a4df5 to your computer and use it in GitHub Desktop.

Select an option

Save mcsee/39d40cf2f0d4159c95d90243c59a4df5 to your computer and use it in GitHub Desktop.
This gist belongs to Clean Code Cookbook http://cleancodecookbook.com By Maximiliano Contieri http://maximilianocontieri.com
<?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