Upgrade with rector

This commit is contained in:
Alex Wulf
2022-07-05 16:21:06 +02:00
parent fd5d276359
commit 689e3b75fe
38 changed files with 144 additions and 355 deletions

View File

@ -2,19 +2,16 @@
namespace DNW\Skills\FactorGraphs;
abstract class Schedule
abstract class Schedule implements \Stringable
{
private $_name;
protected function __construct($name)
protected function __construct(private $_name)
{
$this->_name = $name;
}
abstract public function visit($depth = -1, $maxDepth = 0);
public function __toString()
public function __toString(): string
{
return $this->_name;
return (string) $this->_name;
}
}