Tiny type work

This commit is contained in:
2024-02-29 10:16:18 +00:00
parent 231173dbf2
commit 03d26de045
3 changed files with 10 additions and 1 deletions

View File

@ -4,10 +4,15 @@ declare(strict_types=1);
namespace DNW\Skills\FactorGraphs;
class FactorGraph
abstract class FactorGraph
{
private VariableFactory $variableFactory;
protected function __construct()
{
$this->variableFactory = new VariableFactory(fn () => NULL);
}
public function getVariableFactory(): VariableFactory
{
return $this->variableFactory;