You are here

public function Builder::push in Zircon Profile 8

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

File

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

Class

Builder

Namespace

Stack

Code

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