PhpAmqpLib\Wire\GenericContent::set PHP Method

set() public method

Sets a property value
public set ( string $name, mixed $value )
$name string The property name (one of the property definition)
$value mixed The property value
    public function set($name, $value)
    {
        if (!array_key_exists($name, $this->prop_types)) {
            throw new \OutOfBoundsException(sprintf('No "%s" property', $name));
        }
        $this->properties[$name] = $value;
    }