| Total Complexity | 6 |
| Total Lines | 80 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class RpcInfoDefinition |
||
| 21 | { |
||
| 22 | use CastableToArray; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Name of the api. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $title; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Description or usage information about the api. |
||
| 33 | * |
||
| 34 | * @var string|string[]|null |
||
| 35 | */ |
||
| 36 | private $description = null; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Current version of the api. |
||
| 40 | * |
||
| 41 | * @var string |
||
| 42 | */ |
||
| 43 | private $version; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getTitle(): string |
||
| 49 | { |
||
| 50 | return $this->title; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param string $title |
||
| 55 | * @return RpcInfoDefinition |
||
| 56 | */ |
||
| 57 | public function setTitle(string $title): self |
||
| 58 | { |
||
| 59 | $this->title = $title; |
||
| 60 | |||
| 61 | return $this; |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string|string[]|null |
||
| 66 | */ |
||
| 67 | public function getDescription() |
||
| 68 | { |
||
| 69 | return $this->description; |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param string|string[]|null $description |
||
| 74 | * @return RpcInfoDefinition |
||
| 75 | */ |
||
| 76 | public function setDescription($description): self |
||
| 77 | { |
||
| 78 | $this->description = $description; |
||
| 79 | |||
| 80 | return $this; |
||
| 81 | } |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @return string |
||
| 85 | */ |
||
| 86 | public function getVersion(): string |
||
| 87 | { |
||
| 88 | return $this->version; |
||
| 89 | } |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @param string $version |
||
| 93 | * @return RpcInfoDefinition |
||
| 94 | */ |
||
| 95 | public function setVersion(string $version): self |
||
| 100 | } |
||
| 101 | } |
||
| 102 |