public function add(MigrationTrackerCapsule $capsule, MigrationCapsule $migration = null)
    {
        $capsules = $this->all();

        if (!is_null($migration)) {
            $capsule->addMigration($migration);
        }

        $capsules[] = $capsule;

        $this->write($capsules);

        return $capsules;
    }
public function add(MigrationTrackerCapsule $capsule, MigrationCapsule $migration = null)
    {
        $capsules = $this->all();

        if (!is_null($migration)) {
            $capsule->addMigration($migration);
        }

        $capsules[] = $capsule;

        $this->write($capsules);

        return $capsules;
    }
public function add ( MigrationTrackerCapsule $ capsule , MigrationCapsule $ migration = null ) { $ capsules = $ this -> all ( ) ; if ( ! is_null ( $ migration ) ) { $ capsule -> addMigration ( $ migration ) ; } $ capsules [ ] = $ capsule ; $ this -> write ( $ capsules ) ; return $ capsules ; }
Adds properties to the migration tracker

@param CrestApps\CodeGenerator\Models\MigrationTrackerCapsule
@param CrestApps\CodeGenerator\Models\MigrationCapsule $migration

@return array
Adds properties to the migration tracker