403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/calendar/lib/core/eventcategory/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/calendar/lib/core/eventcategory/eventcategory.php
<?php

namespace Bitrix\Calendar\Core\EventCategory;

use Bitrix\Calendar\Core\Base\EntityInterface;
use Bitrix\Calendar\Core\Event\Properties\AttendeeCollection;

final class EventCategory implements EntityInterface
{
	private ?int $id = null;
	private ?string $name = null;
	private ?int $creatorId = null;
	private ?bool $closed = null;
	private ?string $description = null;
	private ?AttendeeCollection $attendees = null;
	private ?array $accessCodes = null;
	private ?bool $deleted = null;
	private ?int $channelId = null;
	private ?int $eventsCount = 0;

	public function getId(): ?int
	{
		return $this->id;
	}

	public function setId(?int $id): self
	{
		$this->id = $id;

		return $this;
	}

	public function getName(): ?string
	{
		return $this->name;
	}

	public function setName(?string $name): self
	{
		$this->name = $name;

		return $this;
	}

	public function getCreatorId(): ?int
	{
		return $this->creatorId;
	}

	public function setCreatorId(?int $creatorId): self
	{
		$this->creatorId = $creatorId;

		return $this;
	}

	public function getClosed(): ?bool
	{
		return $this->closed;
	}

	public function setClosed(?bool $closed): self
	{
		$this->closed = $closed;

		return $this;
	}

	public function getDescription(): ?string
	{
		return $this->description;
	}

	public function setDescription(?string $description): self
	{
		$this->description = $description;

		return $this;
	}

	public function getAttendees(): ?AttendeeCollection
	{
		if (is_null($this->attendees))
		{
			return new AttendeeCollection();
		}

		return $this->attendees;
	}

	public function setAttendees(?AttendeeCollection $collection): EventCategory
	{
		$this->attendees = $collection;

		return $this;
	}

	public function getAccessCodes(): ?array
	{
		return $this->accessCodes;
	}

	public function setAccessCodes(?array $accessCodes): self
	{
		$this->accessCodes = $accessCodes;
		$this->initAttendees();

		return $this;
	}

	public function getDeleted(): ?bool
	{
		return $this->deleted;
	}

	public function setDeleted(?bool $deleted): self
	{
		$this->deleted = $deleted;

		return $this;
	}

	public function getChannelId(): ?int
	{
		return $this->channelId;
	}

	public function setChannelId(?int $channelId): self
	{
		$this->channelId = $channelId;

		return $this;
	}

	public function getEventsCount(): ?int
	{
		return $this->eventsCount;
	}

	public function setEventsCount(?int $eventsCount): self
	{
		$this->eventsCount = $eventsCount;

		return $this;
	}

	protected function initAttendees(): void
	{
		if ($this->getAccessCodes())
		{
			$collection = new AttendeeCollection();
			$collection->setAttendeesCodes($this->getAccessCodes());

			$this->attendees = $collection;
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit