Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/../vendor/markbaker/../paypal/../iyzico/./../unicodeveloper/laravel-paystack/../../paypal/../phar-io/../../vendor/symfony/../dragonmantank/../guzzlehttp/../sebastian/../tijsverkoyen/../tijsverkoyen/./../iyzico/../nesbot/../theseer/../async-aws/../stripe/./../ralouphie/../phar-io/manifest/./src/values
الملفات الموجودة في هذا الـ Path:
.
..
Application.php
ApplicationName.php
Author.php
AuthorCollection.php
AuthorCollectionIterator.php
BundledComponent.php
BundledComponentCollection.php
BundledComponentCollectionIterator.php
CopyrightInformation.php
Email.php
Extension.php
Library.php
License.php
Manifest.php
PhpExtensionRequirement.php
PhpVersionRequirement.php
Requirement.php
RequirementCollection.php
RequirementCollectionIterator.php
Type.php
Url.php

مشاهدة ملف: Author.php

<?php declare(strict_types = 1);
/*
 * This file is part of PharIo\Manifest.
 *
 * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace PharIo\Manifest;

class Author {
    /** @var string */
    private $name;

    /** @var Email */
    private $email;

    public function __construct(string $name, Email $email) {
        $this->name  = $name;
        $this->email = $email;
    }

    public function asString(): string {
        return \sprintf(
            '%s <%s>',
            $this->name,
            $this->email->asString()
        );
    }

    public function getName(): string {
        return $this->name;
    }

    public function getEmail(): Email {
        return $this->email;
    }
}