2020-01-05 22:26:51 +00:00
|
|
|
<?php
|
2024-08-24 13:27:00 +00:00
|
|
|
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-01-05 22:26:51 +00:00
|
|
|
|
|
|
|
namespace Friendica;
|
|
|
|
|
|
|
|
use Psr\Log\LoggerInterface;
|
|
|
|
|
|
|
|
/**
|
2023-03-22 04:07:32 +00:00
|
|
|
* Factories act as an intermediary to avoid direct Entity instantiation.
|
2020-01-05 22:26:51 +00:00
|
|
|
*
|
|
|
|
* @see BaseModel
|
|
|
|
* @see BaseCollection
|
|
|
|
*/
|
|
|
|
abstract class BaseFactory
|
|
|
|
{
|
|
|
|
/** @var LoggerInterface */
|
|
|
|
protected $logger;
|
|
|
|
|
|
|
|
public function __construct(LoggerInterface $logger)
|
|
|
|
{
|
|
|
|
$this->logger = $logger;
|
|
|
|
}
|
|
|
|
}
|