ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.Posting.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ilDateTime;
24 
25 class Posting
26 {
27  public function __construct(
28  protected int $id,
29  protected int $blog_id,
30  protected string $title,
31  protected ilDateTime $created,
32  protected int $author,
33  protected bool $approved,
34  protected ?ilDateTime $last_withdrawn
35  ) {
36  }
37 
38  public function getId(): int
39  {
40  return $this->id;
41  }
42 
43  public function getBlogId(): int
44  {
45  return $this->blog_id;
46  }
47 
48  public function getTitle(): string
49  {
50  return $this->title;
51  }
52 
53  public function getCreated(): ilDateTime
54  {
55  return $this->created;
56  }
57 
58  public function getAuthor(): int
59  {
60  return $this->author;
61  }
62 
63  public function isApproved(): bool
64  {
65  return $this->approved;
66  }
67 
68  public function getLastWithdrawn(): ?ilDateTime
69  {
70  return $this->last_withdrawn;
71  }
72 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(protected int $id, protected int $blog_id, protected string $title, protected ilDateTime $created, protected int $author, protected bool $approved, protected ?ilDateTime $last_withdrawn)