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,15 +4,15 @@ namespace DNW\Skills\FactorGraphs;
class ScheduleStep extends Schedule
{
public function __construct($name, private readonly Factor $_factor, private $_index)
public function __construct($name, private readonly Factor $factor, private $index)
{
parent::__construct($name);
}
public function visit(int $depth = -1, int $maxDepth = 0)
{
$currentFactor = $this->_factor;
$currentFactor = $this->factor;
return $currentFactor->updateMessageIndex($this->_index);
return $currentFactor->updateMessageIndex($this->index);
}
}