public function __construct($classname) { $msg = "Unable to use class '{$classname}' as a device adapter; it does not implement the DeviceAdapter interface"; parent::__construct(500, $msg, $msg); }