mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
23 lines
No EOL
329 B
PHP
23 lines
No EOL
329 B
PHP
<?php
|
|
|
|
/**
|
|
* Description of Actions
|
|
*
|
|
* @author jeremy
|
|
*/
|
|
class Actions
|
|
{
|
|
//this is dumb
|
|
protected static function returnError($error)
|
|
{
|
|
throw new ErrorException($error);
|
|
}
|
|
|
|
protected static function returnErrorIf($condition, $error)
|
|
{
|
|
if ($condition)
|
|
{
|
|
Actions::returnError($error);
|
|
}
|
|
}
|
|
} |