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,16 +2,10 @@
namespace DNW\Skills\FactorGraphs;
class Message
class Message implements \Stringable
{
private $_name;
private $_value;
public function __construct($value = null, $name = null)
public function __construct(private $_value = null, private $_name = null)
{
$this->_name = $name;
$this->_value = $value;
}
public function getValue()
@ -24,7 +18,7 @@ class Message
$this->_value = $value;
}
public function __toString()
public function __toString(): string
{
return (string) $this->_name;
}