public function setVariable(Variable $variable)
    {
        $this->checkType($variable);
        $data = &$this->getDataPlaceHolder();
        $data[$variable->getIdentifier()] = $variable;
    }
public function setVariable(Variable $variable)
    {
        $this->checkType($variable);
        $data = &$this->getDataPlaceHolder();
        $data[$variable->getIdentifier()] = $variable;
    }
public function setVariable ( Variable $ variable ) { $ this -> checkType ( $ variable ) ; $ data = & $ this -> getDataPlaceHolder ( ) ; $ data [ $ variable -> getIdentifier ( ) ] = $ variable ; }
Set a variable to the state. It will be accessible by it's variable name.

@param \qtism\runtime\common\Variable $variable
Set a variable to the state . It will be accessible by it s variable name .