for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OhDear\PhpSdk\Resources;
class User extends ApiResource
{
/** @var int */
public $id;
/** @var string */
public $name;
public $email;
/** @var email */
public $photoUrl;
/** @var Team[] */
public $teams;
public function __construct(array $attributes, $ohDear = null)
parent::__construct($attributes, $ohDear);
$this->teams = array_map(function (array $teamAttributes) {
return new Team($teamAttributes);
}, $this->teams);
}