Kraken\Channel\Model\Socket\Connection\ConnectionPool::setConnectionProperty PHP Метод

setConnectionProperty() публичный Метод

public setConnectionProperty ( string $id, string $property, mixed $value )
$id string
$property string
$value mixed
    public function setConnectionProperty($id, $property, $value)
    {
        if (!$this->existsConnection($id)) {
            $this->setConnection($id);
        }
        $this->connectionPool[$id][$property] = $value;
    }

Usage Example

Пример #1
0
 /**
  * Set connection statically to be marked always as online.
  *
  * @param string $id
  */
 public function markConnectionPersistent($id)
 {
     $this->connectionPool->setConnectionProperty($id, 'timestampIn', 0);
 }