for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Reflection\Tests\Dummy;
use \JsonSerializable as Serializable;
/**
* Class Leaf
* @package Reflection\Tests\Dummy
*/
class Leaf implements Serializable {
* @var double
private $height;
private $width;
* @return float
public function getHeight() {
return $this->height;
}
* @param float $height
* @return $this
public function setHeight($height) {
$this->height = $height;
return $this;
public function getWidth() {
return $this->width;
* @param float $width
public function setWidth($width) {
$this->width = $width;
* @param double $height
* @param double $width
public function __construct($height = null, $width = null) {
* @return array
public function jsonSerialize() {
return [
'height' => $this->getHeight(),
'width' => $this->getWidth()
];