ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilOrgUnitUserAssignment.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28{
29 protected int $id;
30 protected int $user_id = 0;
31 protected int $position_id = 0;
32 protected int $orgu_id = 0;
33
34 public function __construct(?int $id = 0)
35 {
36 $this->id = $id;
37 }
38
39 public function getId(): ?int
40 {
41 return $this->id;
42 }
43
44 public function withId(?int $id): self
45 {
46 $clone = clone $this;
47 $clone->id = $id;
48 return $clone;
49 }
50
51 public function getUserId(): int
52 {
53 return $this->user_id;
54 }
55
56 public function withUserId(int $user_id): self
57 {
58 $clone = clone $this;
59 $clone->user_id = $user_id;
60 return $clone;
61 }
62
63 public function getPositionId(): int
64 {
65 return $this->position_id;
66 }
67
68 public function withPositionId(int $position_id): self
69 {
70 $clone = clone $this;
71 $clone->position_id = $position_id;
72 return $clone;
73 }
74
75 public function getOrguId(): int
76 {
77 return $this->orgu_id;
78 }
79
80 public function withOrguId(int $orgu_id): self
81 {
82 $clone = clone $this;
83 $clone->orgu_id = $orgu_id;
84 return $clone;
85 }
86}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Class ilOrgUnitUserAssignment.