/** * Build an instance of the defined Spec. * * @return Spec */ public function make() { return new Spec($this->constraints->toArray(), $this->defaults->toArray(), $this->required->toArray()); }