for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Date: 23.11.15
*
* @author Portey Vasil <[email protected]>
*/
namespace Youshido\GraphQL\Parser\Value;
class Variable implements ValueInterface
{
/** @var string */
private $name;
private $value;
public function __construct($name)
$this->name = $name;
}
* @return mixed
* @throws \Exception
public function getValue()
if (!$this->value) {
throw new \Exception('Value not setted to variable');
return $this->value;
* @param mixed $value
public function setValue($value)
$this->value = $value;
* @return string
public function getName()
return $this->name;
* @param string $name
public function setName($name)