public function __construct(JoinTables $tables) { $this->tables = $tables; $this->addMissingTablesNeededForJoins(); }