9e36b5533240070aae47a24b62e3a6cbd8c26d3b
[yaffs-website] / vendor / league / container / src / ServiceProvider / AbstractSignatureServiceProvider.php
1 <?php
2
3 namespace League\Container\ServiceProvider;
4
5 abstract class AbstractSignatureServiceProvider
6     extends AbstractServiceProvider
7     implements SignatureServiceProviderInterface
8 {
9     /**
10      * @var string
11      */
12     protected $signature;
13
14     /**
15      * {@inheritdoc}
16      */
17     public function withSignature($signature)
18     {
19         $this->signature = $signature;
20
21         return $this;
22     }
23
24     /**
25      * {@inheritdoc}
26      */
27     public function getSignature()
28     {
29         return (is_null($this->signature)) ? get_class($this) : $this->signature;
30     }
31 }