BadMethodCallException is typically used in conjunction with __call magic method.
(PHP 5 >= 5.1.0, PHP 7)
Exception thrown if a callback refers to an undefined method or if some arguments are missing.
$message
= ""
[, int $code
= 0
[, Throwable $previous
= null
]]] )
BadMethodCallException is typically used in conjunction with __call magic method.