AuthorElement.php 609 B

1234567891011121314151617181920
  1. <?php declare(strict_types = 1);
  2. /*
  3. * This file is part of PharIo\Manifest.
  4. *
  5. * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace PharIo\Manifest;
  11. class AuthorElement extends ManifestElement {
  12. public function getName(): string {
  13. return $this->getAttributeValue('name');
  14. }
  15. public function getEmail(): string {
  16. return $this->getAttributeValue('email');
  17. }
  18. }