You are here

public function Builder::unshift in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/stack/builder/src/Stack/Builder.php \Stack\Builder::unshift()

File

vendor/stack/builder/src/Stack/Builder.php, line 16

Class

Builder

Namespace

Stack

Code

public function unshift() {
  if (func_num_args() === 0) {
    throw new \InvalidArgumentException("Missing argument(s) when calling unshift");
  }
  $spec = func_get_args();
  $this->specs
    ->unshift($spec);
  return $this;
}