for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPDaemon\Traits;
use PHPDaemon\Core\Daemon;
use PHPDaemon\Core\Debug;
use PHPDaemon\Exceptions\UndefinedMethodCalled;
/**
* Watchdog of __call and __callStatic
* @package PHPDaemon\Traits
* @author Zorin Vasily <[email protected]>
*/
trait ClassWatchdog {
* @param string $method Method name
* @param array $args Arguments
* @throws UndefinedMethodCalled if call to undefined method
* @return mixed
public function __call($method, $args) {
throw new UndefinedMethodCalled('Call to undefined method ' . get_class($this) . '->' . $method);
}
* @throws UndefinedMethodCalled if call to undefined static method
public static function __callStatic($method, $args) {
$args
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
throw new UndefinedMethodCalled('Call to undefined static method ' . get_called_class() . '::' . $method);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.