src/Bucket.php
public function enabled(BehaviorInterface $behavior)
    {
        $slug = $behavior->getSlug();

        if (!$this->featureMap->slugExists($slug)) {
            call_user_func($this->callback, $slug);
        }
        return $this->featureMap->enabled($slug, $this->index);
    }
public function enabled(BehaviorInterface $behavior)
    {
        $slug = $behavior->getSlug();

        if (!$this->featureMap->slugExists($slug)) {
            call_user_func($this->callback, $slug);
        }
        return $this->featureMap->enabled($slug, $this->index);
    }
Check if a behavior is enabled for a particular context/bucket combination.

@param \Zumba\Swivel\BehaviorInterface $behavior

@return bool

@see \Zumba\Swivel\BucketInterface