MDL-58859 mlbackend_php: Added to core

Part of MDL-57791 epic.
This commit is contained in:
David Monllao
2017-07-24 07:51:54 +02:00
parent 229ae617c5
commit 9e84757bf0
129 changed files with 11485 additions and 0 deletions
@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace Phpml\Exception;
class SerializeException extends \Exception
{
/**
* @param string $filepath
*
* @return SerializeException
*/
public static function cantUnserialize(string $filepath)
{
return new self(sprintf('"%s" can not be unserialized.', $filepath));
}
/**
* @param string $classname
*
* @return SerializeException
*/
public static function cantSerialize(string $classname)
{
return new self(sprintf('Class "%s" can not be serialized.', $classname));
}
}