Issues (52)

src/Contracts/DriverInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Turahe\Master\Contracts;
4
5
interface DriverInterface
6
{
7
    /**
8
     * Create a new currency.
9
     *
10
     * @param array $params
11
     *
12
     * @return bool
13
     */
14
    public function create(array $params);
15
16
    /**
17
     * Get all currencies.
18
     *
19
     * @return array
20
     */
21
    public function all();
22
23
    /**
24
     * Get given currency from storage.
25
     *
26
     * @param string $code
27
     * @param int    $active
28
     *
29
     * @return mixed
30
     */
31
    public function find($code, $active = 1);
32
33
    /**
34
     * Update given currency.
35
     *
36
     * @param string   $code
37
     * @param array    $attributes
38
     * @param DateTime $timestamp
39
     *
40
     * @return int
41
     */
42
    public function update($code, array $attributes, DateTime $timestamp = null);
0 ignored issues
show
The type Turahe\Master\Contracts\DateTime was not found. Did you mean DateTime? If so, make sure to prefix the type with \.
Loading history...
43
44
    /**
45
     * Remove given currency from storage.
46
     *
47
     * @return int
48
     */
49
    public function delete($code);
50
}
51