src/Throttle.php
public function get($data, int $limit = 10, int $time = 60)
    {
        $transformed = $this->transformer->make($data)->transform($data, $limit, $time);

        if (!array_key_exists($key = $transformed->getKey(), $this->throttlers)) {
            $this->throttlers[$key] = $this->factory->make($transformed);
        }

        return $this->throttlers[$key];
    }
public function get($data, int $limit = 10, int $time = 60)
    {
        $transformed = $this->transformer->make($data)->transform($data, $limit, $time);

        if (!array_key_exists($key = $transformed->getKey(), $this->throttlers)) {
            $this->throttlers[$key] = $this->factory->make($transformed);
        }

        return $this->throttlers[$key];
    }
public function get ( $ data , int $ limit = 10 , int $ time = 60 ) { $ transformed = $ this -> transformer -> make ( $ data ) -> transform ( $ data , $ limit , $ time ) ; if ( ! array_key_exists ( $ key = $ transformed -> getKey ( ) , $ this -> throttlers ) ) { $ this -> throttlers [ $ key ] = $ this -> factory -> make ( $ transformed ) ; } return $ this -> throttlers [ $ key ] ; }
Get a new throttler.

@param mixed $data
@param int   $limit
@param int   $time

@return \GrahamCampbell\Throttle\Throttlers\ThrottlerInterface
Get a new throttler .