for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Application\Traits;
trait HasColor
{
/**
* @var string
*
* @ORM\Column(type="string", length=7, options={"default" = ""}))
*/
private $color = '';
* Set color
* @API\Input(type="Color")
* @param string $color
public function setColor(string $color): void
$this->color = $color;
}
* Get color
* @API\Field(type="Color")
* @return string
public function getColor(): string
return $this->color;