for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
declare(strict_types=1);
namespace Overblog\GraphQLBundle\Definition;
final class GlobalVariables
{
/** @var array */
private $services;
public function __construct(array $services = [])
$this->services = $services;
}
/**
* @param string $name
*
* @return mixed
*/
public function get(string $name)
if (!isset($this->services[$name])) {
throw new \LogicException(\sprintf('Global variable %s could not be located. You should define it.', \json_encode($name)));
return $this->services[$name];
* @return bool
public function has(string $name): bool
return isset($this->services[$name]);