Beispiel #1
0
 /**
  * @param Operation  $operation
  * @param array      $dependencies
  * @param bool|false $pushToTop    some operations should come before others, use this determine which
  *
  * @since 1.1.0
  *
  * @author Eddilbert Macharia (http://eddmash.com) <*****@*****.**>
  */
 public function addOperation($operation, $dependencies = [], $pushToTop = false)
 {
     $operation->setDependency($dependencies);
     if ($pushToTop) {
         array_unshift($this->generatedOperations, $operation);
     } else {
         array_push($this->generatedOperations, $operation);
     }
 }