Issues (97)

src/Blendable/BlendableInterface.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: joshgulledge
5
 * Date: 3/5/18
6
 * Time: 11:13 AM
7
 */
8
9
namespace LCI\Blend\Blendable;
10
11
use LCI\Blend\Blender;
12
13
interface BlendableInterface
14
{
15
16
    /**
17
     * Element constructor.
18
     *
19
     * @param \modx $modx
20
     * @param Blender $blender
21
     * @param string|array $unique_value ~ ex: name or criteria
22
     */
23
    public function __construct(\modx $modx, Blender $blender, $unique_value);
0 ignored issues
show
The type modx was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
24
25
    /**
26
     * @return bool
27
     */
28
    public function isDebug();
29
30
    /**
31
     * @param bool $debug
32
     *
33
     * @return $this
34
     */
35
    public function setDebug($debug);
36
37
    /**
38
     * @return string
39
     */
40
    public function getSeedsDir();
41
42
    /**
43
     * @param string $dir ~ will be the directory name
44
     *
45
     * @return $this
46
     */
47
    public function setSeedsDir($dir);
48
49
    /**
50
     * Does the DB object exist
51
     * @return bool
52
     */
53
    public function isExists();
54
55
    /**
56
     * @return $this ~ new self()
57
     */
58
    public function getCurrentVersion();
59
60
    /**
61
     * @param string $seed_key
62
     * @param bool $overwrite ~ overwrite existing data object
63
     *
64
     * @return bool
65
     */
66
    public function blendFromSeed($seed_key, $overwrite = false);
67
68
    /**
69
     * @param bool $overwrite ~ overwrite existing data object
70
     *
71
     * @return bool
72
     */
73
    public function blend($overwrite = false);
74
75
    /**
76
     * @return bool
77
     */
78
    public function delete();
79
80
    /**
81
     * @return bool
82
     */
83
    public function revertBlend();
84
85
    /**
86
     * @return string ~ the related seed key
87
     */
88
    public function seed();
89
90
}