getSlug() 공개 메소드

Get the behavior's slug.
public getSlug ( ) : string
리턴 string
예제 #1
0
파일: Bucket.php 프로젝트: zumba/swivel
 /**
  * Check if a behavior is enabled for a particular context/bucket combination.
  *
  * @param \Zumba\Swivel\BehaviorInterface $behavior
  *
  * @return bool
  *
  * @see \Zumba\Swivel\BucketInterface
  */
 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);
 }
예제 #2
0
파일: Bucket.php 프로젝트: iansltx/swivel
 /**
  * Check if a behavior is enabled for a particular context/bucket combination
  *
  * @param \Zumba\Swivel\BehaviorInterface $behavior
  * @return boolean
  * @see \Zumba\Swivel\BucketInterface
  */
 public function enabled(BehaviorInterface $behavior)
 {
     return $this->featureMap->enabled($behavior->getSlug(), $this->index);
 }