/
var
/
www
/
vhosts
/
ihelp.ro
/
_OLD
/
vendor
/
cakephp
/
cakephp
/
src
/
ORM
/
Locator
/
/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/ORM/Locator
mkdir
upload
Name
Size
Mode
Actions
LocatorAwareTrait.php
1707
0644
edit
dl
rm
LocatorInterface.php
2275
0644
edit
dl
rm
TableLocator.php
9592
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/ORM/Locator/LocatorAwareTrait.php
(1707B)
<?php declare(strict_types=1); /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * @link https://cakephp.org CakePHP(tm) Project * @since 3.1.0 * @license https://opensource.org/licenses/mit-license.php MIT License */ namespace Cake\ORM\Locator; use Cake\Datasource\FactoryLocator; /** * Contains method for setting and accessing LocatorInterface instance */ trait LocatorAwareTrait { /** * Table locator instance * * @var \Cake\ORM\Locator\LocatorInterface|null */ protected $_tableLocator; /** * Sets the table locator. * * @param \Cake\ORM\Locator\LocatorInterface $tableLocator LocatorInterface instance. * @return $this */ public function setTableLocator(LocatorInterface $tableLocator) { $this->_tableLocator = $tableLocator; return $this; } /** * Gets the table locator. * * @return \Cake\ORM\Locator\LocatorInterface */ public function getTableLocator(): LocatorInterface { if ($this->_tableLocator === null) { /** @var \Cake\ORM\Locator\LocatorInterface $this->_tableLocator */ $this->_tableLocator = FactoryLocator::get('Table'); } /** @var \Cake\ORM\Locator\LocatorInterface */ return $this->_tableLocator; } }
Save
cmd:
run