-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardization creation of Helpers outside of those supplied by the …
…framework.
- Loading branch information
Grupo Altum
authored and
Grupo Altum
committed
Jun 26, 2023
1 parent
f2c640f
commit 0ea674a
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Illuminate\Support; | ||
|
||
abstract class BaseHelpers | ||
{ | ||
/** | ||
* Handle calls to missing methods on the helper. | ||
* | ||
* @param string $method | ||
* @param array $parameters | ||
* @return mixed | ||
* | ||
* @throws \BadMethodCallException | ||
*/ | ||
public function __call($method, $parameters) | ||
{ | ||
throw new BadMethodCallException(sprintf( | ||
'Method %s::%s does not exist.', static::class, $method | ||
)); | ||
} | ||
|
||
/** | ||
* @return New Instance Class. | ||
*/ | ||
public static function instance() { | ||
return new static(); | ||
} | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters