CreateDoorUseCase.php 451 Bytes
Newer Older
Jacob Priddy's avatar
Jacob Priddy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php


namespace Source\UseCases\Doors\CreateDoor;

use Source\Exceptions\EntityExistsException;

interface CreateDoorUseCase
{
    /**
     * Required attributes:
     *  location
     *  name
14
15
16
     *  public
     * Optional Attributes
     *  notes
Jacob Priddy's avatar
Jacob Priddy committed
17
18
19
20
21
22
23
     *
     * @param array     $attributes
     * @param Presenter $presenter
     * @throws EntityExistsException
     */
    public function create(array $attributes, Presenter $presenter): void;
}