mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
39 lines
620 B
PHP
39 lines
620 B
PHP
<?php
|
|
|
|
namespace Espo\Core\ORM;
|
|
|
|
use \Espo\Core\Interfaces\Injectable;
|
|
|
|
abstract class Repository extends \Espo\ORM\Repository implements Injectable
|
|
{
|
|
protected $dependencies = array();
|
|
|
|
protected $injections = array();
|
|
|
|
public function inject($name, $object)
|
|
{
|
|
$this->injections[$name] = $object;
|
|
}
|
|
|
|
protected function getInjection($name)
|
|
{
|
|
return $this->injections[$name];
|
|
}
|
|
|
|
public function getDependencyList()
|
|
{
|
|
return $this->dependencies;
|
|
}
|
|
|
|
protected function getMetadata()
|
|
{
|
|
return $this->metadata;
|
|
}
|
|
|
|
public function setMetadata($metadata)
|
|
{
|
|
$this->metadata = $metadata;
|
|
}
|
|
}
|
|
|