for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LazyEight\DiTesto;
use LazyEight\DiTesto\Interfaces\FileInterface;
class File implements FileInterface
{
/**
* @var string
*/
private $path;
private $content;
* File constructor.
* @param string $path
* @param string $content
public function __construct(string $path, string $content = '')
$this->path = $path;
$this->content = $content;
}
* @inheritDoc
public function getPath(): string
return $this->path;
public function getRawContent(): string
return $this->content;
public function setRawContent(string $content)
public function __toString()
return (string) $this->content;