Zumba\Swivel\Behavior::getSlug PHP 메소드

getSlug() 공개 메소드

Get the behavior's slug.
또한 보기: Zumba\Swivel\BehaviorInterface
public getSlug ( ) : string
리턴 string
    public function getSlug()
    {
        return $this->slug;
    }

Usage Example

예제 #1
0
파일: Builder.php 프로젝트: iansltx/swivel
 /**
  * Set the behavior and it's args
  *
  * @param \Zumba\Swivel\Behavior $behavior
  * @param array $args
  * @return void
  */
 protected function setBehavior(Behavior $behavior, array $args = [])
 {
     $slug = $behavior->getSlug();
     $this->logger->debug('Swivel - Setting behavior.', compact('slug', 'args'));
     $this->behavior = $behavior;
     $this->args = $args;
 }