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