for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the doctrineviz package
*
* Copyright (c) 2017 Pierre Hennequart
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* Feel free to edit as you please, and have fun.
* @author Pierre Hennequart <[email protected]>
*/
declare(strict_types=1);
namespace Janalis\Doctrineviz\Graphviz;
class Attribute implements AttributeInterface
{
/** @var string */
protected $id;
protected $value;
/**
* @return string
public function __toString()
return "$this->id=\"$this->value\"";
}
* Attribute constructor.
* @param string $id
* @param string $value
public function __construct(string $id, string $value)
$this->id = $id;
$this->value = $value;
* Get id.
public function getId(): string
return $this->id;
* Set id.
public function setId(string $id): void
* Get value.
public function getValue(): string
return $this->value;
* Set value.
public function setValue(string $value): void