for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Koriym\AppStateDiagram;
final class Link
{
/** @var string */
public $from;
public $to;
public $label;
/** @var TransDescriptor */
public $transDescriptor;
public function __construct(SemanticDescriptor $semantic, TransDescriptor $trans, LabelNameInterface $labelName)
$this->from = $semantic->id;
$this->to = $trans->rt;
$this->label = $labelName->getLinkLabel($trans);
$this->transDescriptor = $trans;
}
public function __toString(): string
return $this->label;