for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Assimtech\Tempo\Loader;
use RuntimeException;
abstract class AbstractLoader
{
/**
* @param string $path
* @throws \RuntimeException
*/
protected function validatePath($path)
if (!is_string($path)) {
throw new RuntimeException(sprintf(
'$path must be a string (%s given)',
gettype($path)
));
}
if (!file_exists($path)) {
'File not found: %s',
$path
* @return mixed
abstract public function load($path);