public function build($input)
    {
        $scaffold = new Scaffold($this->blueprint->class, $input);
        $this->applyInstructions($scaffold, Instruction::PHASE_PRE_INST);
        $this->makeInstance($scaffold);
        $this->applyInstructions($scaffold, Instruction::PHASE_POST_INST);
        $this->assignProperties($scaffold);
        $this->applyInstructions($scaffold, Instruction::PHASE_FINAL);
        return $scaffold->instance;
    }
public function build($input)
    {
        $scaffold = new Scaffold($this->blueprint->class, $input);
        $this->applyInstructions($scaffold, Instruction::PHASE_PRE_INST);
        $this->makeInstance($scaffold);
        $this->applyInstructions($scaffold, Instruction::PHASE_POST_INST);
        $this->assignProperties($scaffold);
        $this->applyInstructions($scaffold, Instruction::PHASE_FINAL);
        return $scaffold->instance;
    }
public function build ( $ input ) { $ scaffold = new Scaffold ( $ this -> blueprint -> class , $ input ) ; $ this -> applyInstructions ( $ scaffold , Instruction :: PHASE_PRE_INST ) ; $ this -> makeInstance ( $ scaffold ) ; $ this -> applyInstructions ( $ scaffold , Instruction :: PHASE_POST_INST ) ; $ this -> assignProperties ( $ scaffold ) ; $ this -> applyInstructions ( $ scaffold , Instruction :: PHASE_FINAL ) ; return $ scaffold -> instance ; }
Builds class instance based on input configuration.

@param array|mixed $input
@return mixed
Builds class instance based on input configuration .