| 1 | <?php |
||
| 15 | class ArticleRepository extends AggregateRepository implements ArticleRepositoryInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $className; |
||
| 21 | |||
| 22 | public function __construct(string $className, EventStore $eventStore, SnapshotStore $snapshotStore) |
||
| 35 | |||
| 36 | public function create(string $id, int $userId): Article |
||
| 40 | |||
| 41 | public function save(Article $article): void |
||
| 45 | |||
| 46 | public function get(string $id): ?Article |
||
| 50 | } |
||
| 51 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.