getType() public method

Get the configured type.
public getType ( ) : string
return string The configured type as a string.
Exemplo n.º 1
0
 public static function castExchange(\AMQPExchange $c, array $a, Stub $stub, $isNested)
 {
     $prefix = Caster::PREFIX_VIRTUAL;
     $a += array($prefix . 'name' => $c->getName(), $prefix . 'flags' => self::extractFlags($c->getFlags()), $prefix . 'type' => isset(self::$exchangeTypes[$c->getType()]) ? new ConstStub(self::$exchangeTypes[$c->getType()], $c->getType()) : $c->getType(), $prefix . 'arguments' => $c->getArguments(), $prefix . 'channel' => $c->getChannel(), $prefix . 'connection' => $c->getConnection());
     return $a;
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function getType()
 {
     return $this->delegate->getType();
 }
Exemplo n.º 3
0
 /**
  * @return string
  */
 public function getType()
 {
     return $this->rawExchange->getType();
 }
Exemplo n.º 4
0
 /**
  * @inheritdoc
  */
 public function getType() : string
 {
     return $this->exchange->getType() ?: '';
 }