public static assertArrayKeyExists ( $collection, $key, $callee ) |
public static function assertArrayKeyExists($collection, $key, $callee)
{
if (!isset($collection[$key])) {
throw new static(sprintf('%s(): unknown key "%s"', $callee, $key));
}
}