mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Add lib/PhpAmqpLib
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user