AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.138.134.76
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bitrix/www/bitrix/modules/calendar/lib/core/role/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/www/bitrix/modules/calendar/lib/core/role/attendee.php
<?php

namespace Bitrix\Calendar\Core\Role;

use Bitrix\Calendar\Core\Base\BaseException;
use Bitrix\Calendar\Core\Base\BaseProperty;

class Attendee extends BaseProperty implements RoleEntityInterface
{
	public const TYPE = 'attendee';
	/**
	 * @var bool
	 */
	protected bool $reInvite = false;
	/**
	 * @var int|null
	 */
	protected ?int $id = null;
	protected ?string $lastName = null;
	protected ?string $name = null;
	protected RoleEntityInterface $roleEntity;

	public function __construct(RoleEntityInterface $roleEntity)
	{
		$this->roleEntity = $roleEntity;
	}

	public static function createInstance(RoleEntityInterface $roleEntity): RoleEntityInterface
	{
			$attendee = new static($roleEntity);
			$attendee->setReInvite(false);

			return $attendee;
	}

	/**
	 * @param string $email
	 * @return $this
	 */
	public function setEmail(string $email): Attendee
	{
		$this->email = $email;

		return $this;
	}

	/**
	 * @return string|null
	 */
	public function getEmail(): ?string
	{
		return $this->email;
	}

	/**
	 * @param bool $reInvite
	 * @return $this
	 */
	public function setReInvite(bool $reInvite): Attendee
	{
		$this->reInvite = $reInvite;

		return $this;
	}

	/**
	 * @return bool
	 */
	public function isReInvite(): bool
	{
		return $this->reInvite;
	}

	/**
	 * @return string
	 */
	public function toString(): string
	{
		return $this->getFullName();
	}

	public function getFullName(): string
	{
		return $this->name . ' ' . $this->lastName;
	}

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

	public function getType(): string
	{
		return self::TYPE;
	}

	public function getFields(): array
	{
		return [
			'reInvite',
			'id',
			'name',
			'lastName',
			'roleEntity',
		];
	}
}

Anon7 - 2022
AnonSec Team