for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Nyholm\Dsn\Exception;
/**
* Thrown when the provided function is not supported.
*
* @author Tobias Nyholm <[email protected]>
*/
class FunctionNotSupportedException extends InvalidDsnException
{
private $function;
public function __construct(string $dsn, string $function, ?string $message = null)
parent::__construct($dsn, $message ?? sprintf('Function "%s" is not supported', $function));
$this->function = $function;
}
public function getFunction(): string
return $this->function;