ContainerAwareInterface
last analyzed

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
getContainer() 0 1 ?
setContainer() 0 1 ?
1
<?php declare(strict_types=1);
2
3
namespace League\Route;
4
5
use Psr\Container\ContainerInterface;
6
7
interface ContainerAwareInterface
8
{
9
    /**
10
     * Get the current container
11
     *
12
     * @return \Psr\Container\ContainerInterface|null
13
     */
14
    public function getContainer() : ?ContainerInterface;
15
16
    /**
17
     * Set the container implementation
18
     *
19
     * @param \Psr\Container\ContainerInterface $container
20
     *
21
     * @return static
22
     */
23
    public function setContainer(ContainerInterface $container) : ContainerAwareInterface;
24
}
25