No more use of $_ to mark private members.

This commit is contained in:
2023-08-02 09:15:01 +00:00
parent 32b8a9d83e
commit 16ad8175d9
10 changed files with 71 additions and 71 deletions

View File

@ -4,22 +4,22 @@ namespace DNW\Skills\FactorGraphs;
class Message implements \Stringable
{
public function __construct(private $_value = null, private $_name = null)
public function __construct(private $value = null, private $name = null)
{
}
public function getValue()
{
return $this->_value;
return $this->value;
}
public function setValue($value)
{
$this->_value = $value;
$this->value = $value;
}
public function __toString(): string
{
return (string) $this->_name;
return $this->name;
}
}