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