ILIAS  trunk Revision v11.0_alpha-2658-ge2404539063
AssignmentRow.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  protected string $table;
26  protected int $id;
27  protected int $id_from_parent_table;
28 
32  protected array $value_assignments = [];
33 
34  public function __construct(
35  string $table,
36  int $id,
37  int $id_from_parent_table
38  ) {
39  $this->table = $table;
40  $this->id = $id;
41  $this->id_from_parent_table = $id_from_parent_table;
42  }
43 
44  public function table(): string
45  {
46  return $this->table;
47  }
48 
49  public function id(): int
50  {
51  return $this->id;
52  }
53 
54  public function setId(int $id): void
55  {
56  $this->id = $id;
57  }
58 
59  public function idFromParentTable(): int
60  {
62  }
63 
67  public function actions(): \Generator
68  {
70  }
71 
72  public function addAction(
73  ActionAssignmentInterface $assignment
74  ): void {
75  $this->value_assignments[] = $assignment;
76  }
77 }
addAction(ActionAssignmentInterface $assignment)
Note that this does not clone!
__construct(string $table, int $id, int $id_from_parent_table)