1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Container;
4:
5: /**
6: * @api
7: */
8: interface HasServiceLifetime
9: {
10: /**
11: * One instance of the service is created if it implements
12: * SingletonInterface, otherwise a new instance is always created
13: */
14: public const LIFETIME_INHERIT = 0;
15:
16: /**
17: * A new instance of the service is always created
18: */
19: public const LIFETIME_TRANSIENT = 1;
20:
21: /**
22: * One instance of the service is created
23: */
24: public const LIFETIME_SINGLETON = 2;
25: }
26: