mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
33 lines
543 B
PHP
33 lines
543 B
PHP
<?php
|
|
namespace PhpAmqpLib\Wire;
|
|
|
|
|
|
class AMQPArray extends AMQPAbstractCollection
|
|
{
|
|
|
|
public function __construct(array $data = null)
|
|
{
|
|
parent::__construct(empty($data) ? null : array_values($data));
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
final public function getType()
|
|
{
|
|
return self::T_ARRAY;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $val
|
|
* @param null $type
|
|
* @return $this
|
|
*/
|
|
public function push($val, $type = null)
|
|
{
|
|
$this->setValue($val, $type);
|
|
|
|
return $this;
|
|
}
|
|
}
|