public function addTick(TickInterface $tick)
    {
        $tick->setManager($this);
        $this->ticks[$tick->getName()] = [
            'tick' => $tick,
            'time' => 0,
        ];

        return $this;
    }
public function addTick(TickInterface $tick)
    {
        $tick->setManager($this);
        $this->ticks[$tick->getName()] = [
            'tick' => $tick,
            'time' => 0,
        ];

        return $this;
    }
public function addTick ( TickInterface $ tick ) { $ tick -> setManager ( $ this ) ; $ this -> ticks [ $ tick -> getName ( ) ] = [ 'tick' => $ tick , 'time' => 0 , ] ; return $ this ; }
Add tick to loop.

@param TickInterface $tick
@return $this
Add tick to loop .