public function __construct(APIUser $user = null, array $roles = array()) { $this->user = $user; $this->roles = $roles; }