bristol-su /
control
| 1 | <?php |
||
| 2 | |||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 3 | namespace BristolSU\ControlDB\Contracts\Models; |
||
| 4 | |||
| 5 | use BristolSU\ControlDB\AdditionalProperties\ImplementsAdditionalProperties; |
||
| 6 | use Illuminate\Contracts\Support\Arrayable; |
||
| 7 | use Illuminate\Contracts\Support\Jsonable; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Handles attributes about a position |
||
| 11 | */ |
||
|
0 ignored issues
–
show
|
|||
| 12 | interface DataPosition extends ImplementsAdditionalProperties, Arrayable, Jsonable |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Get the ID of a position |
||
| 16 | * |
||
| 17 | * @return int |
||
| 18 | */ |
||
| 19 | public function id(): int; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get the name of the position |
||
| 23 | * |
||
| 24 | * @return string|null |
||
| 25 | */ |
||
| 26 | public function name(): ?string; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get a description for the position |
||
| 30 | * |
||
| 31 | * @return string|null |
||
| 32 | */ |
||
| 33 | public function description(): ?string; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Set the name of the position |
||
| 37 | * |
||
| 38 | * @param string|null $name |
||
|
0 ignored issues
–
show
|
|||
| 39 | */ |
||
|
0 ignored issues
–
show
|
|||
| 40 | public function setName(?string $name): void; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Set the description of the position |
||
| 44 | * |
||
| 45 | * @param string|null $description |
||
|
0 ignored issues
–
show
|
|||
| 46 | */ |
||
|
0 ignored issues
–
show
|
|||
| 47 | public function setDescription(?string $description): void; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get the position using the position data attributes |
||
| 51 | * |
||
| 52 | * @return Position|null |
||
| 53 | */ |
||
| 54 | public function position(): ?Position; |
||
| 55 | |||
| 56 | } |