/** * Executor constructor. * * @param Connection $connection */ public function __construct($connection) { $this->connection = $connection; $this->schemaEditor = SchemaEditor::createObject($connection); $this->loader = Loader::createObject($connection); $this->recorder = Recorder::createObject($connection); }