Even less strings

This commit is contained in:
2024-03-19 15:56:57 +00:00
parent bbff1fbbbc
commit 796bd993d0
8 changed files with 14 additions and 25 deletions

View File

@ -6,9 +6,9 @@ namespace DNW\Skills\FactorGraphs;
use DNW\Skills\Numerics\GaussianDistribution;
class Message implements \Stringable
class Message
{
public function __construct(private GaussianDistribution $value, private readonly string $name)
public function __construct(private GaussianDistribution $value)
{
}
@ -21,9 +21,4 @@ class Message implements \Stringable
{
$this->value = $value;
}
public function __toString(): string
{
return $this->name;
}
}