ヤミRoot VoidGate
User / IP
:
216.73.216.143
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
/
logercm
/
dev.loger.cm
/
vendor
/
doctrine
/
data-fixtures
/
src
/
Viewing: AbstractFixture.php
<?php declare(strict_types=1); namespace Doctrine\Common\DataFixtures; use BadMethodCallException; use Doctrine\Deprecations\Deprecation; use function assert; /** * Abstract Fixture class helps to manage references * between fixture classes in order to set relations * among other fixtures */ abstract class AbstractFixture implements SharedFixtureInterface { /** * Fixture reference repository * * @var ReferenceRepository|null */ protected $referenceRepository; /** * {@inheritdoc} */ public function setReferenceRepository(ReferenceRepository $referenceRepository) { $this->referenceRepository = $referenceRepository; } private function getReferenceRepository(): ReferenceRepository { assert($this->referenceRepository !== null); return $this->referenceRepository; } /** * Set the reference entry identified by $name * and referenced to managed $object. If $name * already is set, it overrides it * * @see Doctrine\Common\DataFixtures\ReferenceRepository::setReference * * @param string $name * @param object $object - managed object * * @return void */ public function setReference($name, $object) { $this->getReferenceRepository()->setReference($name, $object); } /** * Set the reference entry identified by $name * and referenced to managed $object. If $name * already is set, it throws a * BadMethodCallException exception * * @see Doctrine\Common\DataFixtures\ReferenceRepository::addReference * * @param string $name * @param object $object - managed object * * @return void * * @throws BadMethodCallException - if repository already has a reference by $name. */ public function addReference($name, $object) { $this->getReferenceRepository()->addReference($name, $object); } /** * Loads an object using stored reference * named by $name * * @see Doctrine\Common\DataFixtures\ReferenceRepository::getReference * * @param string $name * @psalm-param class-string<T>|null $class * * @return object * @psalm-return ($class is null ? object : T) * * @template T of object */ public function getReference($name, ?string $class = null) { if ($class === null) { Deprecation::trigger( 'doctrine/data-fixtures', 'https://github.com/doctrine/data-fixtures/pull/409', 'Argument $class of %s() will be mandatory in 2.0.', __METHOD__ ); } return $this->getReferenceRepository()->getReference($name, $class); } /** * Check if an object is stored using reference * named by $name * * @see Doctrine\Common\DataFixtures\ReferenceRepository::hasReference * * @param string $name * @psalm-param class-string $class * * @return bool */ public function hasReference($name, ?string $class = null) { if ($class === null) { Deprecation::trigger( 'doctrine/data-fixtures', 'https://github.com/doctrine/data-fixtures/pull/409', 'Argument $class of %s() will be mandatory in 2.0.', __METHOD__ ); } return $this->getReferenceRepository()->hasReference($name, $class); } }
Coded With 💗 by
0x6ick