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
 /**
  * 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;
 }