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/socialnetwork/lib/Space/List/Item/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/socialnetwork/lib/Space/List/Item/Space.php
<?php

namespace Bitrix\Socialnetwork\Space\List\Item;

use Bitrix\Main\Type\Contract\Arrayable;
use Bitrix\Main\Type\DateTime;
use Bitrix\Socialnetwork\Helper\Avatar;
use Bitrix\Socialnetwork\Space\List\RecentActivity\Item\RecentActivityData;

final class Space implements Arrayable
{
	private int $id;
	private string $name = '';
	private bool $isPinned = false;
	private ?Avatar $avatar = null;
	private string $visibilityType = '';
	private int $counter = 0;
	private ?Datetime $lastSearchDate = null;
	private string $userRole = '';
	private bool $follow = false;
	private ?RecentActivityData $recentActivityData = null;
	private array $permissions = [];

	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 setIsPinned(bool $isPinned): self
	{
		$this->isPinned = $isPinned;

		return $this;
	}

	public function setAvatar(Avatar $avatar): self
	{
		$this->avatar = $avatar;

		return $this;
	}

	public function setVisibilityType(string $visibilityType): self
	{
		$this->visibilityType = $visibilityType;

		return $this;
	}

	public function setCounter(int $counter): self
	{
		$this->counter = $counter;

		return $this;
	}

	public function setLastSearchDate(?DateTime $lastSearchDate): self
	{
		$this->lastSearchDate = $lastSearchDate;

		return $this;
	}

	public function setUserRole(string $userRole): self
	{
		$this->userRole = $userRole;

		return $this;
	}

	public function setFollow(bool $follow): self
	{
		$this->follow = $follow;

		return $this;
	}

	public function setRecentActivityData(?RecentActivityData $recentActivityData): self
	{
		$this->recentActivityData = $recentActivityData;

		return $this;
	}

	public function getRecentActivityData(): RecentActivityData
	{
		return $this->recentActivityData;
	}

	public function setPermissions(array $permissions): self
	{
		$this->permissions = $permissions;

		return $this;
	}

	public function toArray(): array
	{
		return [
			'id' => $this->id,
			'name' => $this->name,
			'isPinned' => $this->isPinned,
			'avatar' => $this->avatar?->toArray(),
			'visibilityType' => $this->visibilityType,
			'counter' => $this->counter,
			'lastSearchDate' => $this->lastSearchDate,
			'lastSearchDateTimestamp' => $this->lastSearchDate?->getTimestamp(),
			'userRole' => $this->userRole,
			'follow' => $this->follow,
			'recentActivityData' => $this->recentActivityData?->toArray(),
			'permissions' => $this->permissions,
		];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit