Repository::get()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 1
1
<?php namespace C4tech\RayEmitter\Contracts\Domain;
2
3
interface Repository
4
{
5
    /**
6
     * Get
7
     *
8
     * Return a read-only Entity.
9
     * @param  string $identifier Entity identifier.
10
     * @return Entity
11
     */
12
    public static function get($identifier);
13
14
    /**
15
     * Handle
16
     *
17
     * Point of entry for Commands to allow fetching of Aggregate state.
18
     * @param  Command $command Command to be handled.
19
     * @return string           Entity identifier.
20
     */
21
    public static function handle(Command $command);
22
}
23