attach_behavior( $this ); } /** * Detach behavior from a component * * @return $this|bool */ public function detach() { if ( ! $this->owner instanceof Component ) { return false; } $this->owner->detach_behavior( self::class ); $this->owner = null; return $this; } }