Issues (30)

Providers/AbstractSignatureServiceProvider.php (1 issue)

Severity
1
<?php
2
3
namespace Nip\Container\ServiceProviders\Providers;
4
5
use Nip\Container\ServiceProviders\Providers\SignatureServiceProviderInterface as SignatureInterface;
6
7
/**
8
 * Class AbstractSignatureServiceProvider
9
 * @package Nip\Container\ServiceProvider
10
 */
11
abstract class AbstractSignatureServiceProvider extends AbstractServiceProvider implements SignatureInterface
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $signature;
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function withSignature($signature)
22
    {
23
        $this->signature = $signature;
24
        return $this;
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getSignature()
31
    {
32
        return (is_null($this->signature)) ? get_class($this) : $this->signature;
0 ignored issues
show
The condition is_null($this->signature) is always false.
Loading history...
33
    }
34
}
35