/** * Use this to check that a function argument is either `null` or of type * `AppInfo`. * * @internal */ static function checkArgOrNull($argName, $argValue) { if ($argValue === null) { return; } if (!$argValue instanceof self) { Checker::throwError($argName, $argValue, __CLASS__); } }
/** * Use this to check that a function argument is of type <code>AppInfo</code> * * @internal */ static function checkArg($argName, $argValue) { if (!$argValue instanceof self) { Checker::throwError($argName, $argValue, __CLASS__); } }