Kraken\Network\NetworkComponentAwareInterface::setComponent PHP Method

setComponent() public method

Set component to which data is being transferred to.
public setComponent ( Kraken\Network\NetworkComponentInterface $component = null )
$component Kraken\Network\NetworkComponentInterface
    public function setComponent(NetworkComponentInterface $component = null);

Usage Example

Ejemplo n.º 1
0
 /**
  * @param NetworkComponentAwareInterface|null $aware
  * @param NetworkComponentInterface|null $component
  */
 public function __construct(NetworkComponentAwareInterface $aware = null, NetworkComponentInterface $component = null)
 {
     $this->component = $component;
     $this->blacklist = [];
     if ($aware !== null) {
         $aware->setComponent($this);
     }
 }
All Usage Examples Of Kraken\Network\NetworkComponentAwareInterface::setComponent
NetworkComponentAwareInterface