for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Arthem\GraphQLMapper\Mapping;
abstract class AbstractType
{
/**
* @var string
*/
private $name;
private $description;
* The GraphQL class used to build the final schema
*
private $internalType = 'ObjectType';
* @return string
public function getName()
return $this->name;
}
* @param string $name
* @return $this
public function setName($name)
$this->name = $name;
return $this;
public function getDescription()
return $this->description;
* @param string $description
public function setDescription($description)
$this->description = $description;
public function getInternalType()
return $this->internalType;
* @param string $internalType
public function setInternalType($internalType)
$this->internalType = $internalType;
* @return array<string,mixed>
public function toMapping()
return [
'name' => $this->name,
'description' => $this->description,
];