| Total Complexity | 4 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Source implements Arrayable |
||
| 9 | { |
||
| 10 | use NotNullArrayable; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * A JSON Pointer [RFC6901] to the associated entity in the request document |
||
| 14 | * [e.g. "/data" for a primary data object, or "/data/attributes/title" for |
||
| 15 | * a specific attribute]. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $pointer; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * A string indicating which URI query parameter caused the error. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $parameter; |
||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * Get pointer. |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getPointer() |
||
| 35 | { |
||
| 36 | return $this->pointer; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Set pointer. |
||
| 41 | * |
||
| 42 | * @param string $pointer |
||
| 43 | * |
||
| 44 | * @return self |
||
| 45 | */ |
||
| 46 | public function setPointer(string $pointer) |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get parameter. |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getParameter() |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Set parameter. |
||
| 65 | * |
||
| 66 | * @param string $parameter |
||
| 67 | * |
||
| 68 | * @return self |
||
| 69 | */ |
||
| 70 | public function setParameter(string $parameter) |
||
| 77 |