for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the box project.
*
* (c) Kevin Herrera <[email protected]>
* Théo Fidry <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace KevinGH\Box\PharInfo;
use function basename;
use function KevinGH\Box\FileSystem\remove;
use ParagonIE\Pharaoh\Pharaoh as ParagoniePharaoh;
final class Pharaoh extends ParagoniePharaoh
{
private $fileName;
/**
* {@inheritdoc}
public function __construct(string $file, ?string $alias = null)
parent::__construct($file, $alias);
$this->fileName = basename($file);
}
public function __destruct()
parent::__destruct();
remove($this->tmp);
public function getFileName(): string
return $this->fileName;