Destiny\Grimoire\Model::__construct PHP Метод

__construct() публичный Метод

public __construct ( Grimoire $grimoire, array $properties )
$grimoire Destiny\Grimoire
$properties array
    public function __construct(Grimoire $grimoire, array $properties)
    {
        parent::__construct($properties);
        $this->grimoire = $grimoire;
    }

Usage Example

Пример #1
0
 public function __construct(Statistic $statistic, array $properties)
 {
     parent::__construct($statistic->grimoire, $properties);
     $this->statistic = $statistic;
     $this->inProgress = $statistic->value >= $this->offset && $statistic->value < $this->threshold;
     $this->completed = $statistic->value >= $this->threshold;
 }
All Usage Examples Of Destiny\Grimoire\Model::__construct