CommandHandler.php 421 Bytes
Newer Older
1
2
3
4
5
6
<?php


namespace Source\UseCases\Door\Commands;


Jacob Priddy's avatar
Jacob Priddy committed
7
8
use Source\Entities\User;

9
10
interface CommandHandler
{
Jacob Priddy's avatar
Jacob Priddy committed
11
12
13
14
15
16
17
18
19
    /**
     * Returns true on success, false on failure
     *
     * @param \Source\Entities\User $user
     * @param string                $doorId
     * @param string                $commandString
     * @return bool
     */
    public function handle(User $user, string $doorId, string $commandString): bool;
20
}