Set current step
@param int $value
@return string
180602
public static function setCurrentStep($value)
    {
        $value = (int) $value;
        if ($value > self::getMaxStep()) {
            self::setMaxStep($value);
        }
        Session::set(self::classNameWithoutNumber() . '.step', $value);
        return Session::save();
    }
361387
public function setValue($value)
	{
		// any preparation goes here, for example casting to int
		$errors = $this->getValidationErrors($value);
		// if specific validation existed would go here & if
		// anything goes wrong will put error message into errors
		if(!empty($errors))
			throw $this->getContext()->getModel('ValidationException', 'Form', array(($errors)));
		return $value;
	}
1193078
public function setDateActive($value) : User
    {
        $this->validateDate('DateActive', $value);

        if ($this->data['date_active'] !== $value) {
            $this->data['date_active'] = $value;
            $this->setModified('date_active');
        }

        return $this;
    }
512222
public function expression($value) : self
    {
        $this->requiresCurrentField(__METHOD__);
        $this->expr[$this->currentField] = $this->ensureArray($value);

        return $this;
    }
906947
protected function set_root_value( $value ) {
		$id_base = $this->id_data['base'];

		// First delete the current user-meta.
		// We're doing this to avoid duplicate entries.
		delete_user_meta( get_current_user_id(), $id_base );

		// Update the user-meta.
		return update_user_meta( get_current_user_id(), $id_base, $value );
	}
126012
public function setSecond( int $value = null ) : Time
   {

      if ( \is_null( $value ) )
      {
         $this->properties[ 'second' ] = static::CurrentSecond();
         return $this;
      }

      $intValue = \intval( $value );

      if ( $intValue < 0 )
      {
         $this->properties[ 'second' ] = 0;
      }
      else if ( $intValue > 59 )
      {
         $this->properties[ 'second' ] = $intValue % 60;
      }
      else
      {
         $this->properties[ 'second' ] = $intValue;
      }

      return $this;

   }
1293074
public function setValue($value)
    {
        switch ($this->type) {
            case Parameter::TYPE_INTEGER:
                $this->value = (int) $value;
                break;
            case Parameter::TYPE_STRING:
            case Parameter::TYPE_ANY:
            default:
                $this->value = (string) $value;
        }

        return $this;
    }
1191451
public function setValue($value)
    {
        if ($value == $this->getAttribute('value')) {
            $this->check();
        } else {
            $this->uncheck();
        }
        return $this;
    }
523640
public function setActive(int $value) : User
    {

        if ($this->data['active'] !== $value) {
            $this->data['active'] = $value;
            $this->setModified('active');
        }

        return $this;
    }
1001910
protected function receiveStepFieldValueFromRequest($value = Doozr_Form_Service_Constant::DEFAULT_STEP_FIRST)
    {
        $requestQueryParameter = $this->getRequest()->getQueryParams();
        $requestBody           = $this->getRequest()->getParsedBody();
        $fieldname             = $this->getFieldnameStep();

        if (true === isset($requestQueryParameter[$fieldname])) {
            // Check for passed _GET arguments from URI like: /?jump=1
            $value = $requestQueryParameter[$fieldname];
        } elseif (true === isset($requestBody[$fieldname])) {
            // Check for passed _POST arguments from request body like: &jump=1
            $value = $requestBody[$fieldname];
        }

        return $value;
    }
134887
public function setValue( $value )
    {
        if ( $value instanceof Traversable )
        {
            $value = ArrayUtils::iteratorToArray( $value );
        }

        return parent::setValue( (array) $value );
    }
932463
public function setCurrentJobId(?int $value) : ScheduledJob
    {

        // As this column is a foreign key, empty values should be considered null.
        if (empty($value)) {
            $value = null;
        }


        if ($this->data['current_job_id'] !== $value) {
            $this->data['current_job_id'] = $value;
            $this->setModified('current_job_id');
        }

        return $this;
    }
1268749
public function setRootText( $value )
    {
        $content = $this->getDependentContent();

        if ( $content )
        {
            $content->leadText = $value;
        }

        return $this;
    }
666603
public function setAddition($value)
    {
        $this->data->amount->subtotals->addition = $this->convertAmount($value);

        return $this;
    }
1155904
public function set_value($value) {

        // Getting the filemanager label from the DOM.
        $fieldlabel = $this->get_field_locator();

        // Getting the filepicker context and using the step definition
        // to upload the requested file.
        $uploadcontext = behat_context_helper::get('behat_repository_upload');
        $uploadcontext->i_upload_file_to_filemanager($value, $fieldlabel);
    }
1008539
public function setCurrent($value)
    {
        if (StaticValidator::validates('number', $value)) {
            $this->current = StaticFilter::filter('number',$value);
            $this->offset = $this->rowsPerPage * ($this->current - 1);
        }
        return $this;
    }
1208806
private function getStepValue()
    {
        $value = $this->_scopeConfig->getValue(PriceDataProvider::XML_PATH_RANGE_STEP, ScopeInterface::SCOPE_STORE);

        return (int) $value;
    }