Issues (23)

src/Definition/ObjectDefinitionInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * This file is part of slick/di package
5
 *
6
 * For the full copyright and license information, please view the LICENSE.md
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Slick\Di\Definition;
11
12
use Slick\Di\Definition\Object\DefinitionData;
13
use Slick\Di\DefinitionInterface;
0 ignored issues
show
The type Slick\Di\DefinitionInterface 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...
14
use Slick\Di\Exception\MethodNotFoundException;
15
16
/**
17
 * Object Definition Interface
18
 *
19
 * @package Slick\Di\Definition
20
 * @author  Filipe Silva <[email protected]>
21
 */
22
interface ObjectDefinitionInterface extends DefinitionInterface
23
{
24
25
    /**
26
     * Get the definition data
27
     *
28
     * @return DefinitionData
29
     */
30
    public function getDefinitionData();
31
32
    /**
33
     * Adds the arguments to be used with constructor
34
     *
35
     * @param array ...$arguments
36
     *
37
     * @return self|ObjectDefinitionInterface
38
     */
39
    public function withConstructorArgument(...$arguments);
40
41
    /**
42
     * Define a method call with provide call
43
     *
44
     * @param string $methodName
45
     * @param array ...$arguments
46
     *
47
     * @return self|ObjectDefinitionInterface
48
     *
49
     * @throws MethodNotFoundException
50
     */
51
    public function callMethod($methodName, ...$arguments);
52
53
    /**
54
     * Assigns a value to the property with provided name
55
     *
56
     * @param string $name
57
     * @param mixed  $value
58
     *
59
     * @return self|Object
60
     */
61
    public function assignProperty($name, $value);
62
}
63