Files
cheeper-ddd-cqrs-example/src/Cheeper/Chapter5/Infrastructure/Persistence/DoctrineOrmFollowers.php

24 lines
558 B
PHP

<?php
declare(strict_types=1);
namespace Cheeper\Chapter5\Infrastructure\Persistence;
use Cheeper\AllChapters\DomainModel\Author\AuthorId;
use Cheeper\Chapter5\DomainModel\Follow\Followers;
use Cheeper\Chapter5\DomainModel\Follow\NumberOfFollowers;
use Doctrine\ORM\EntityManagerInterface;
final class DoctrineOrmFollowers implements Followers
{
public function __construct(
private EntityManagerInterface $entityManager
) {
}
public function ofAuthorId(AuthorId $authorId): ?NumberOfFollowers
{
return null;
}
}