| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Imagify\Dependencies\League\Container\Argument; |
| 6 |
|
| 7 |
class DefaultValueArgument extends ResolvableArgument implements DefaultValueInterface |
| 8 |
{ |
| 9 |
protected $defaultValue; |
| 10 |
|
| 11 |
public function __construct(string $value, $defaultValue = null) |
| 12 |
{ |
| 13 |
$this->defaultValue = $defaultValue; |
| 14 |
parent::__construct($value); |
| 15 |
} |
| 16 |
|
| 17 |
/** |
| 18 |
* @return mixed|null |
| 19 |
*/ |
| 20 |
public function getDefaultValue() |
| 21 |
{ |
| 22 |
return $this->defaultValue; |
| 23 |
} |
| 24 |
} |
| 25 |
|