1 | <?php |
||
5 | class ExchangeArgument extends BaseObject |
||
6 | { |
||
7 | /** |
||
8 | * @var integer |
||
9 | * If messages to this exchange cannot otherwise be routed, send them to the alternate exchange named here. |
||
10 | */ |
||
11 | const ALTERNATE_EXCHAGE = 'alternate-exchange'; |
||
12 | |||
13 | |||
14 | private $argumentName; |
||
15 | |||
16 | /** |
||
17 | * @return String |
||
18 | */ |
||
19 | public function getArgumentName() |
||
23 | |||
24 | public function __construct(String $argument, string $value) |
||
30 | |||
31 | public function validate($value) : bool |
||
46 | } |
||
47 |
As per the PSR-2 coding standard, there must not be a space in front of the colon in the default statement.
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.