/opt/cpanel/ea-wappspector/vendor/phar-io/manifest/src/values
NameSizeModeActions
Application.php5040644editdlrm
ApplicationName.php11800644editdlrm
Author.php13040644editdlrm
AuthorCollection.php10460644editdlrm
AuthorCollectionIterator.php11570644editdlrm
BundledComponent.php8400644editdlrm
BundledComponentCollection.php11860644editdlrm
BundledComponentCollectionIterator.php12770644editdlrm
CopyrightInformation.php8600644editdlrm
Email.php9120644editdlrm
Extension.php14300644editdlrm
Library.php4960644editdlrm
License.php7640644editdlrm
Manifest.php26050644editdlrm
PhpExtensionRequirement.php6820644editdlrm
PhpVersionRequirement.php8040644editdlrm
Requirement.php4240644editdlrm
RequirementCollection.php11160644editdlrm
RequirementCollectionIterator.php12170644editdlrm
Type.php11870644editdlrm
Url.php9390644editdlrm
Edit: /opt/cpanel/ea-wappspector/vendor/phar-io/manifest/src/values/Author.php (1304B)
, Sebastian Heuer , Sebastian Bergmann and contributors * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace PharIo\Manifest; use function sprintf; class Author { /** @var string */ private $name; /** @var null|Email */ private $email; public function __construct(string $name, ?Email $email = null) { $this->name = $name; $this->email = $email; } public function asString(): string { if (!$this->hasEmail()) { return $this->name; } return sprintf( '%s <%s>', $this->name, $this->email->asString() ); } public function getName(): string { return $this->name; } /** * @psalm-assert-if-true Email $this->email */ public function hasEmail(): bool { return $this->email !== null; } public function getEmail(): Email { if (!$this->hasEmail()) { throw new NoEmailAddressException(); } return $this->email; } }