Example #1
0
 /**
  * Sets a new input associated to this label.
  *
  * @param InputInterface $input The input instance
  */
 public function setInput(InputInterface $input)
 {
     //Ensure the label and input have ids defined
     $this->id();
     $input->id();
     //Assign the relation to each other
     $this->input = $input;
     $input->addLabel($this);
 }