<?php

declare(strict_types=1);

namespace App\Service\Content;

use App\Entity\Content\Placement;

interface PlacementRepositoryInterface
{
    /**
     * @param int $id
     *
     * @return Placement
     */
    public function findById(int $id): ?Placement;

    /**
     * @param Placement $placement
     */
    public function save(Placement $placement): void;

    /**
     * @param Placement $placement
     */
    public function delete(Placement $placement): void;

    public function count(array $criteria);
}
