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;
use \Reflection\Tests\Dummy\Branch as BranchClass;
use \Reflection\Tests\Dummy\Leaf;
/**
* Class Tree
* @package Reflection\Tests\Dummy
*/
class Tree implements JsonSerializable {
* @var float
public $height;
* @var string
private $name;
* @var BranchClass
private $branch;
private $something;
* @return float
public function getHeight() {
return $this->height;
}
* @param float $height
* @return $this
public function setHeight($height) {
$this->height = $height;
return $this;
* @return string
public function getName() {
return $this->name;
* @param string $name
public function setName($name) {
$this->name = $name;
* @return BranchClass
public function getBranch() {
return $this->branch;
* @param BranchClass $branch
public function setBranch(BranchClass $branch = null) {
$this->branch = $branch;
* @param double $height
public function __construct($height = null, $name = null, BranchClass $branch = null) {
$this->something = 'something';
* @return array
public function jsonSerialize() {
return [
'name' => $this->getName(),
'height' => $this->getHeight(),
'branch' => $this->getBranch()
];