Exemplo n.º 1
0
 /**
  * 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__);
     }
 }
Exemplo n.º 2
0
 /**
  * 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__);
     }
 }