]> git.mxchange.org Git - friendica.git/blob - src/BaseFactory.php
Introduce Repository, Factory, Collection, Model base classes
[friendica.git] / src / BaseFactory.php
1 <?php
2
3 namespace Friendica;
4
5 use Psr\Log\LoggerInterface;
6
7 /**
8  * Factories act as an intermediary to avoid direct Entitiy instanciation.
9  *
10  * @see BaseModel
11  * @see BaseCollection
12  */
13 abstract class BaseFactory
14 {
15         /** @var LoggerInterface */
16         protected $logger;
17
18         public function __construct(LoggerInterface $logger)
19         {
20                 $this->logger = $logger;
21         }
22 }