mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-08 09:15:37 +08:00
* add @CommandArgument and relevant event changes * fix unknown bug * remove relative constant for CommandArgument
31 lines
480 B
PHP
31 lines
480 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace ZM\Entity;
|
|
|
|
class InputArguments
|
|
{
|
|
private $arguments;
|
|
|
|
public function __construct(array $arguments)
|
|
{
|
|
$this->arguments = $arguments;
|
|
}
|
|
|
|
public function getArguments(): array
|
|
{
|
|
return $this->arguments;
|
|
}
|
|
|
|
public function getArgument($name)
|
|
{
|
|
return $this->arguments[$name] ?? null;
|
|
}
|
|
|
|
public function get($name)
|
|
{
|
|
return $this->getArgument($name);
|
|
}
|
|
}
|