Просмотр файла vendor/nelexa/zip/src/PhpZip/Exception/ZipEntryNotFoundException.php

Размер файла: 688B
<?php

namespace PhpZip\Exception;

/**
 * Thrown if entry not found.
 *
 * @author Ne-Lexa [email protected]
 * @license MIT
 */
class ZipEntryNotFoundException extends ZipException
{
    /**
     * @var string
     */
    private $entryName;

    /**
     * ZipEntryNotFoundException constructor.
     * @param string $entryName
     */
    public function __construct($entryName)
    {
        parent::__construct(sprintf(
            "Zip Entry \"%s\" was not found in the archive.",
            $entryName
        ));
        $this->entryName = $entryName;
    }

    /**
     * @return string
     */
    public function getEntryName()
    {
        return $this->entryName;
    }
}