Example #1
0
 /**
  * @param string|Behavior $behavior
  */
 public function __construct($behavior)
 {
     if ($behavior instanceof Behavior) {
         $this->_behavior = (string) $behavior->className();
     } else {
         if (is_string($behavior)) {
             $this->_behavior = (string) $behavior;
         }
     }
 }