App\Models\UserStatistics\Model::__construct PHP Method

__construct() public method

public __construct ( $attributes = [], $zeroInsteadOfNull = true )
    public function __construct($attributes = [], $zeroInsteadOfNull = true)
    {
        if ($zeroInsteadOfNull) {
            $this->level = 1;
            $this->rank_score_index = 0;
            $this->ranked_score = 0;
            $this->accuracy_new = 0;
            $this->playcount = 0;
            $this->total_score = 0;
            $this->max_combo = 0;
            $this->count300 = 0;
            $this->count100 = 0;
            $this->count50 = 0;
            $this->replay_popularity = 0;
            $this->x_rank_count = 0;
            $this->s_rank_count = 0;
            $this->a_rank_count = 0;
        }
        return parent::__construct($attributes);
    }