public function consumed($feature)
    {
        foreach ($this->subscription->usage as $key => $usage) {
            if ($usage->code === $feature and $usage->isExpired() == false) {
                return $usage->used;
            }
        }

        return 0;
    }
public function consumed($feature)
    {
        foreach ($this->subscription->usage as $key => $usage) {
            if ($usage->code === $feature and $usage->isExpired() == false) {
                return $usage->used;
            }
        }

        return 0;
    }
public function consumed ( $ feature ) { foreach ( $ this -> subscription -> usage as $ key => $ usage ) { if ( $ usage -> code === $ feature and $ usage -> isExpired ( ) == false ) { return $ usage -> used ; } } return 0 ; }
Get how many times the feature has been used.

@param  string $feature
@return int
Get how many times the feature has been used .