Example #1
0
 /**
  * @param Asker $asker
  * @param $modelName
  * @param $oldName
  * @param $newName
  * @param Field $fieldObj
  *
  * @return ConfirmationQuestion
  *
  * @since 1.1.0
  *
  * @author Eddilbert Macharia (http://eddmash.com) <*****@*****.**>
  */
 public static function hasFieldRenamed($asker, $modelName, $oldName, $newName, $fieldObj)
 {
     $msg = 'Did you rename %1$s.%2$s to %1$s.%3$s (a %4$s)? [y/N]';
     $q = new ConfirmationQuestion(sprintf($msg, $modelName, $oldName, $newName, $fieldObj->getShortClassName()));
     return $asker->ask($q);
 }