Proj\Model\Counts Object
(
[counts:protected] => Array
(
[user] => Proj\Model\Count Object
(
[count:protected] => 3
)
)
)
class Unt{
protected $count = 35;
public function getCount()
{
return $this->count;
}
public function __get($var)
{
return $this->$var;
}
}
$class = new Unt();
var_dump($class->getCount()); // 35
var_dump($class->count); // 35