Functional\Exceptions\InvalidArgumentException::assertArrayKeyExists PHP Method

assertArrayKeyExists() public static method

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));
        }
    }