ComponentElementCollection.php 530 B

12345678910111213141516171819
  1. <?php
  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 ComponentElementCollection extends ElementCollection {
  12. public function current() {
  13. return new ComponentElement(
  14. $this->getCurrentElement()
  15. );
  16. }
  17. }