AbstractArgument.php
4 years ago
ArgumentInterface.php
4 years ago
BoundArgument.php
2 years ago
IteratorArgument.php
4 years ago
ReferenceSetArgumentTrait.php
4 years ago
RewindableGenerator.php
4 years ago
ServiceClosureArgument.php
4 years ago
ServiceLocator.php
2 years ago
ServiceLocatorArgument.php
4 years ago
TaggedIteratorArgument.php
2 years ago
index.php
3 years ago
AbstractArgument.php
25 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\DependencyInjection\Argument; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | final class AbstractArgument |
| 5 | { |
| 6 | private $text; |
| 7 | private $context; |
| 8 | public function __construct(string $text = '') |
| 9 | { |
| 10 | $this->text = \trim($text, '. '); |
| 11 | } |
| 12 | public function setContext(string $context) : void |
| 13 | { |
| 14 | $this->context = $context . ' is abstract' . ('' === $this->text ? '' : ': '); |
| 15 | } |
| 16 | public function getText() : string |
| 17 | { |
| 18 | return $this->text; |
| 19 | } |
| 20 | public function getTextWithContext() : string |
| 21 | { |
| 22 | return $this->context . $this->text . '.'; |
| 23 | } |
| 24 | } |
| 25 |