ヤミRoot VoidGate
User / IP
:
216.73.216.211
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
api
/
vendor
/
jms
/
serializer
/
tests
/
Fixtures
/
Viewing: ObjectWithLifecycleCallbacks.php
<?php namespace JMS\Serializer\Tests\Fixtures; use JMS\Serializer\Annotation\Exclude; use JMS\Serializer\Annotation\PostDeserialize; use JMS\Serializer\Annotation\PostSerialize; use JMS\Serializer\Annotation\PreSerialize; use JMS\Serializer\Annotation\Type; class ObjectWithLifecycleCallbacks { /** * @Exclude */ private $firstname; /** * @Exclude */ private $lastname; /** * @Type("string") */ private $name; public function __construct($firstname = 'Foo', $lastname = 'Bar') { $this->firstname = $firstname; $this->lastname = $lastname; } /** * @PreSerialize */ private function prepareForSerialization() { $this->name = $this->firstname . ' ' . $this->lastname; } /** * @PostSerialize */ private function cleanUpAfterSerialization() { $this->name = null; } /** * @PostDeserialize */ private function afterDeserialization() { list($this->firstname, $this->lastname) = explode(' ', $this->name); $this->name = null; } }
Coded With 💗 by
0x6ick