vendor/sulu/sulu/src/Sulu/Bundle/ActivityBundle/Domain/Model/Activity.php line 16

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of Sulu.
  4.  *
  5.  * (c) Sulu GmbH
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Sulu\Bundle\ActivityBundle\Domain\Model;
  11. use Sulu\Component\Security\Authentication\UserInterface;
  12. class Activity implements ActivityInterface
  13. {
  14.     /**
  15.      * @var int
  16.      */
  17.     private $id;
  18.     /**
  19.      * @var string
  20.      */
  21.     private $type;
  22.     /**
  23.      * @var mixed[]
  24.      */
  25.     private $context = [];
  26.     /**
  27.      * @var mixed[]|null
  28.      */
  29.     private $payload;
  30.     /**
  31.      * @var \DateTimeImmutable
  32.      */
  33.     private $timestamp;
  34.     /**
  35.      * @var string|null
  36.      */
  37.     private $batch;
  38.     /**
  39.      * @var UserInterface|null
  40.      */
  41.     private $user;
  42.     /**
  43.      * @var string
  44.      */
  45.     private $resourceKey;
  46.     /**
  47.      * @var string
  48.      */
  49.     private $resourceId;
  50.     /**
  51.      * @var string|null
  52.      */
  53.     private $resourceLocale;
  54.     /**
  55.      * @var string|null
  56.      */
  57.     private $resourceWebspaceKey;
  58.     /**
  59.      * @var string|null
  60.      */
  61.     private $resourceTitle;
  62.     /**
  63.      * @var string|null
  64.      */
  65.     private $resourceTitleLocale;
  66.     /**
  67.      * @var string|null
  68.      */
  69.     private $resourceSecurityContext;
  70.     /**
  71.      * @var string|null
  72.      */
  73.     private $resourceSecurityObjectType;
  74.     /**
  75.      * @var string|null
  76.      */
  77.     private $resourceSecurityObjectId;
  78.     public function getType(): string
  79.     {
  80.         return $this->type;
  81.     }
  82.     public function setType(string $type): ActivityInterface
  83.     {
  84.         $this->type $type;
  85.         return $this;
  86.     }
  87.     public function getContext(): array
  88.     {
  89.         return $this->context;
  90.     }
  91.     public function setContext(array $context): ActivityInterface
  92.     {
  93.         $this->context $context;
  94.         return $this;
  95.     }
  96.     public function getPayload(): ?array
  97.     {
  98.         return $this->payload;
  99.     }
  100.     public function setPayload(?array $payload): ActivityInterface
  101.     {
  102.         $this->payload $payload;
  103.         return $this;
  104.     }
  105.     public function getTimestamp(): \DateTimeImmutable
  106.     {
  107.         return $this->timestamp;
  108.     }
  109.     public function setTimestamp(\DateTimeImmutable $timestamp): ActivityInterface
  110.     {
  111.         $this->timestamp $timestamp;
  112.         return $this;
  113.     }
  114.     public function getBatch(): ?string
  115.     {
  116.         return $this->batch;
  117.     }
  118.     public function setBatch(?string $batch): ActivityInterface
  119.     {
  120.         $this->batch $batch;
  121.         return $this;
  122.     }
  123.     public function getUser(): ?UserInterface
  124.     {
  125.         return $this->user;
  126.     }
  127.     public function setUser(?UserInterface $user): ActivityInterface
  128.     {
  129.         $this->user $user;
  130.         return $this;
  131.     }
  132.     public function getResourceKey(): string
  133.     {
  134.         return $this->resourceKey;
  135.     }
  136.     public function setResourceKey(string $resourceKey): ActivityInterface
  137.     {
  138.         $this->resourceKey $resourceKey;
  139.         return $this;
  140.     }
  141.     public function getResourceId(): string
  142.     {
  143.         return $this->resourceId;
  144.     }
  145.     public function setResourceId(string $resourceId): ActivityInterface
  146.     {
  147.         $this->resourceId $resourceId;
  148.         return $this;
  149.     }
  150.     public function getResourceLocale(): ?string
  151.     {
  152.         return $this->resourceLocale;
  153.     }
  154.     public function setResourceLocale(?string $resourceLocale): ActivityInterface
  155.     {
  156.         $this->resourceLocale $resourceLocale;
  157.         return $this;
  158.     }
  159.     public function getResourceWebspaceKey(): ?string
  160.     {
  161.         return $this->resourceWebspaceKey;
  162.     }
  163.     public function setResourceWebspaceKey(?string $resourceWebspaceKey): ActivityInterface
  164.     {
  165.         $this->resourceWebspaceKey $resourceWebspaceKey;
  166.         return $this;
  167.     }
  168.     public function getResourceTitle(): ?string
  169.     {
  170.         return $this->resourceTitle;
  171.     }
  172.     public function setResourceTitle(?string $resourceTitle): ActivityInterface
  173.     {
  174.         $this->resourceTitle $resourceTitle;
  175.         return $this;
  176.     }
  177.     public function getResourceTitleLocale(): ?string
  178.     {
  179.         return $this->resourceTitleLocale;
  180.     }
  181.     public function setResourceTitleLocale(?string $resourceTitleLocale): ActivityInterface
  182.     {
  183.         $this->resourceTitleLocale $resourceTitleLocale;
  184.         return $this;
  185.     }
  186.     public function getResourceSecurityContext(): ?string
  187.     {
  188.         return $this->resourceSecurityContext;
  189.     }
  190.     public function setResourceSecurityContext(?string $resourceSecurityContext): ActivityInterface
  191.     {
  192.         $this->resourceSecurityContext $resourceSecurityContext;
  193.         return $this;
  194.     }
  195.     public function getResourceSecurityObjectType(): ?string
  196.     {
  197.         return $this->resourceSecurityObjectType;
  198.     }
  199.     public function setResourceSecurityObjectType(?string $resourceSecurityObjectType): ActivityInterface
  200.     {
  201.         $this->resourceSecurityObjectType $resourceSecurityObjectType;
  202.         return $this;
  203.     }
  204.     public function getResourceSecurityObjectId(): ?string
  205.     {
  206.         return $this->resourceSecurityObjectId;
  207.     }
  208.     public function setResourceSecurityObjectId(?string $resourceSecurityObjectId): ActivityInterface
  209.     {
  210.         $this->resourceSecurityObjectId $resourceSecurityObjectId;
  211.         return $this;
  212.     }
  213. }