for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Jellyfish\Queue;
class Destination implements DestinationInterface
{
/**
* @var string
*/
protected $name;
protected $type;
* @var string[]
protected $properties;
public function __construct()
$this->properties = [];
}
* @return string
public function getName(): string
return $this->name;
* @param string $name
*
* @return \Jellyfish\Queue\DestinationInterface
public function setName(string $name): DestinationInterface
$this->name = $name;
return $this;
public function getType(): string
return $this->type;
* @param string $type
public function setType(string $type): DestinationInterface
$this->type = $type;
* @return string|null
public function getProperty(string $name): ?string
if (!isset($this->properties[$name])) {
return null;
return $this->properties[$name];
* @param string $value
public function setProperty(string $name, string $value): DestinationInterface
$this->properties[$name] = $value;