for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AlreadyExtract\Utils\ExtractorCommandDecoder;
/**
* Created by PhpStorm.
* User: mhor
* Date: 02/08/17
* Time: 23:33
*/
class File
{
* @var string
private $path;
private $unpackedSize;
* @return bool
public function isDir()
return $this->unpackedSize === 0;
===
false
$this->unpackedSize
string
0
integer
==
}
public function isFile()
return $this->unpackedSize > 0;
* @return mixed
public function getPath()
return $this->path;
* @param mixed $path
* @return File
public function setPath($path)
$this->path = $path;
return $this;
public function getUnpackedSize()
return $this->unpackedSize;
* @param mixed $unpackedSize
public function setUnpackedSize($unpackedSize)
$this->unpackedSize = $unpackedSize;