diff --git a/src/MongoDBRepository.php b/src/MongoDBRepository.php index d0ad2d4..5376961 100644 --- a/src/MongoDBRepository.php +++ b/src/MongoDBRepository.php @@ -47,9 +47,6 @@ public function __construct(Collection $collection, Serializer $serializer, stri $this->class = $class; } - /** - * {@inheritdoc} - */ public function save(Identifiable $model): void { Assert::isInstanceOf($model, $this->class); @@ -59,9 +56,6 @@ public function save(Identifiable $model): void $this->collection->insertOne($normalized); } - /** - * {@inheritdoc} - */ public function find($id): ?Identifiable { $document = $this->collection->findOne(['_id' => (string) $id]); @@ -69,9 +63,6 @@ public function find($id): ?Identifiable return $document ? $this->denormalizeIdentifiable($document) : null; } - /** - * {@inheritdoc} - */ public function findBy(array $fields): array { if (empty($fields)) { @@ -81,17 +72,11 @@ public function findBy(array $fields): array return $this->findModelsByQuery($fields); } - /** - * {@inheritdoc} - */ public function findAll(): array { return $this->findModelsByQuery(); } - /** - * {@inheritdoc} - */ public function remove($id): void { $this->collection->deleteOne(['_id' => (string) $id]); diff --git a/src/MongoDBRepositoryFactory.php b/src/MongoDBRepositoryFactory.php index bfe2ea1..6c3630c 100644 --- a/src/MongoDBRepositoryFactory.php +++ b/src/MongoDBRepositoryFactory.php @@ -39,9 +39,6 @@ public function __construct(Collection $collection, Serializer $serializer) $this->serializer = $serializer; } - /** - * {@inheritdoc} - */ public function create(string $name, string $class): Repository { return new MongoDBRepository($this->collection, $this->serializer, $class); diff --git a/test/MongoDBRepositoryTest.php b/test/MongoDBRepositoryTest.php index c3865f7..565af26 100644 --- a/test/MongoDBRepositoryTest.php +++ b/test/MongoDBRepositoryTest.php @@ -24,9 +24,6 @@ */ class MongoDBRepositoryTest extends RepositoryTestCase { - /** - * {@inheritdoc} - */ protected function createRepository(): Repository { $collection = (new Client())