Destiny\Account::__construct PHP Method

__construct() public method

public __construct ( Player $player, array $properties, array $stats = null )
$player Player
$properties array
$stats array
    public function __construct(Player $player, array $properties, array $stats = null)
    {
        parent::__construct($properties);
        $this->player = $player;
        $this->statistics = new AccountStatistics($this, $stats);
        $properties['characters'] = array_sort($properties['characters'], function ($value) {
            return $value['characterBase']['characterId'];
        });
        $this->characters = new CharacterCollection($this, $properties['characters']);
    }