for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Collections\Exception;
class UnsuportedException extends Exception
{
public static function unsupportedGet($class)
return new static(sprintf('Cannot get an element of a %', $class));
}
public static function unsupportedSet($class)
return new static(sprintf('Cannot set an element of a %', $class));
public static function unsupportedSetKey($class)
return new static(sprintf('Cannot set an element of a % with a key', $class));
public static function unsupportedUnset($class)
return new static(sprintf('Cannot unset an element of a %', $class));