Issues (23)

src/DefinitionInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * This file is part of slick/di
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;
11
12
use Slick\Di\Definition\Scope;
13
14
/**
15
 * Definition Interface
16
 *
17
 * @package Slick\Di
18
 * @author  Filipe Silva <[email protected]>
19
 */
20
interface DefinitionInterface extends ContainerAwareInterface
21
{
22
    /**
23
     * Resolves the definition into a scalar or object
24
     *
25
     * @return mixed
26
     */
27
    public function resolve(): mixed;
28
29
    /**
30
     * Set resolution scope
31
     *
32
     * @param string|Scope $scope
33
     *
34
     * @return self|$this|DefinitionInterface
35
     */
36
    public function setScope($scope): DefinitionInterface|static;
0 ignored issues
show
A parse error occurred: Syntax error, unexpected T_STATIC on line 36 at column 58
Loading history...
37
38
    /**
39
     * Get resolution scope
40
     *
41
     * @return Scope|string
42
     */
43
    public function getScope(): string|Scope;
44
}
45