Sets the objects properties.

@param $percentage float The percentage that the merge image should take up.
767615
protected function setProperties($percentage)
    {
        if ($percentage > 1) {
            throw new \InvalidArgumentException('$percentage must be less than 1');
        }

        $this->sourceImageHeight = $this->sourceImage->getHeight();
        $this->sourceImageWidth = $this->sourceImage->getWidth();

        $this->mergeImageHeight = $this->mergeImage->getHeight();
        $this->mergeImageWidth = $this->mergeImage->getWidth();

        $this->calculateOverlap($percentage);
        $this->calculateCenter();
    }
1173150
public function setDefaultProperties(Division $division) : void
    {
        $this->defaultProperties = $division;

        $this->divisionsHaveBeenSorted = false;
    }
1055603
public function setUnits($units)
    {
        $this->unitsByLocaleAndDomain = array();
        foreach ($units as $unit) {
            foreach ($unit->getTranslations() as $translation) {
                $this->unitsByLocaleAndDomain[$translation->getLocale()][$translation->getDomain()][] = $translation;
            }
        }
    }
391858
def set_property(self, prop, objects):
        """"""
        self._properties.add(prop)
        objects = set(objects)
        self._objects |= objects
        pairs = self._pairs
        for o in self._objects:
            if o in objects:
                pairs.add((o, prop))
            else:
                pairs.discard((o, prop))
885807
public function setObjects($objects)
    {
        if (!is_array($objects)) {
            $objects = [$objects];
        }

        $this->objects = [];
        foreach ($objects as $object) {
            if (is_string($object)) {
                $vObj = Reader::read($object);
                if (!$vObj instanceof Component\VCard) {
                    throw new \InvalidArgumentException('String could not be parsed as \\Sabre\\VObject\\Component\\VCard by setObjects');
                }

                $this->objects[] = $vObj;
            } elseif ($object instanceof Component\VCard) {
                $this->objects[] = $object;
            } else {
                throw new \InvalidArgumentException('You can only pass strings or \\Sabre\\VObject\\Component\\VCard arguments to setObjects');
            }
        }
    }
1335075
public function speed($percentage)
    {
        if (is_numeric($percentage) && $percentage > 0) {
            $this->speed *= (100 / $percentage);
        }

        return $this->speed;
    }
295829
function quality($percent)
    {
        $this->info();
        $this->_info['quality'] = intval($percent);
        if ($percent!=100){
            $this->_transforms_str.='quality('.$this->_info['quality'].')';
        }
        return $this;
    }
207659
public function mix(Color $color, float $percentage = 50)
    {
        $steps     = 2;
        $weight    = ($percentage * $steps) / 100;
        $mixWeight = $steps - $weight;

        $mixedColor = [
            'r' => (int)ceil((($this->getRgb()['r'] * $weight) + ($color->getRgb()['r'] * $mixWeight)) / $steps),
            'g' => (int)ceil((($this->getRgb()['g'] * $weight) + ($color->getRgb()['g'] * $mixWeight)) / $steps),
            'b' => (int)ceil((($this->getRgb()['b'] * $weight) + ($color->getRgb()['b'] * $mixWeight)) / $steps),
        ];

        return new self(...array_values($mixedColor));
    }
349704
public function setProperties($propValues)
    {
        foreach ($propValues as $propName => $propValue) {
            if (property_exists($this, $propName)) {
                $this->{$propName} = $propValue;
            } else {
                $this->throwException('Property "%propName%" does not exist in class "%className%"', array(
                    '%propName%'  => $propName,
                    '%className%' => static::className(),
                ));
            }
        }
    }
626091
public function mergeProperties($object)
    {
        $defaultValues = get_class_vars(get_class($this));
        $currentValues = get_object_vars($this);
        foreach ($object as $property => $value) {
            if ($property === '_context') {
                continue;
            }
            if ($currentValues[$property] === $defaultValues[$property]) { // Overwrite default values
                $this->$property = $value;
                continue;
            }
            if ($property === '_unmerged') {
                $this->_unmerged = array_merge($this->_unmerged, $value);
                continue;
            }
            if ($currentValues[$property] !== $value) { // New value is not the same?
                if ($defaultValues[$property] === $value) { // but is the same as the default?
                    continue; // Keep current, no notice
                }
                $identity = method_exists($object, 'identity') ? $object->identity() : get_class($object);
                $context1 = $this->_context;
                $context2 = property_exists($object, '_context') ? $object->_context : 'unknown';
                if (is_object($this->$property) && $this->$property instanceof AbstractAnnotation) {
                    $context1 = $this->$property->_context;
                }
                Logger::warning('Multiple definitions for ' . $identity . '->' . $property . "\n     Using: " . $context1 . "\n  Skipping: " . $context2);
            }
        }
    }
1011321
public void setPercent(double percent) {

        if (percent > 100) {
            percent = 100;
        }

        if (percent < 0) {
            percent = 0;
        }

        this.percent = percent;
        fillContainer.getElement().getStyle().setWidth(percent, Unit.PCT);
    }
635518
public void setPercentiles( String percentiles )
    {
        if( percentiles == null ) percentiles = "";
        
        String[] percList = percentiles.split(",");
        double[] percs = new double[percList.length];
        
        for( int i = 0; i < percList.length; i++ )
            percs[i] = Double.parseDouble( percList[i] );
        
        m_percentiles = percs;
        
        rebuildJmx();
    }
6896
public function updateTotal(&$total) {
        $rate = (float)self::config()->get('tax_rate') / 100;
        $tax = $total * $rate;
        $this->setPriceModification($tax);
        if (!(bool)self::config()->get('inclusive')) {
            $total += $tax;
        }
    }
80510
def SetPercentageView(self, percentageView):
        """"""
        self.percentageView = percentageView
        self.percentageMenuItem.Check(self.percentageView)
        self.percentageViewTool.SetValue(self.percentageView)
        total = self.adapter.value( self.loader.get_root( self.viewType ) )
        for control in self.ProfileListControls:
            control.SetPercentage(self.percentageView, total)
        self.adapter.SetPercentage(self.percentageView, total)
531415
protected function calcImageSizePercent($width, $height)
    {
        if ($this->percent > 0) {
            $this->newDimensions = $this->calcPercent($width, $height);
        }
    }
1167207
public function setData( $data )
	{
		$sum = 0;
		foreach( $data as $obj )
			$sum += $obj->value;
		
		foreach( $data as $key => $obj )
		{
			$obj->percent = $obj->value / $sum * 100;
			$this->data[$key] = $obj;
		}
	}
1190685
public function setClassProperties() {

      /********************************************/
      /*     Nouvelle méthode de déclaration      */
      /********************************************/
      // Modèle par défaut : Classe XClassProperty : array('name' => '', 'type' => '', 'defaultValue' => '', 'value' => '');
  		$this->property(array('name' => 'property1', 'type' => '', 'defaultValue' => 'world', 'value' => ''));  // Propriété complète
      $this->property(array('name' => 'property2', 'type' => 'string'));                                      // Propriété avec type 'string'
      $this->property(array('name' => 'property3', 'type' => 'integer'));                                     // Propriété avec type 'integer'
      $this->property(array('name' => 'property4', 'type' => 'array'));                                       // Propriété avec type 'array'
      $this->property(array('name' => 'property5', 'type' => 'boolean'));                                     // Propriété avec type 'boolean'
      $this->property(array('name' => 'property6'));                                                          // Propriété avec un simple nom

      /********************************************/
      /*  /!\           OBSOLETE             /!\  */
      /*      Ancienne méthode de déclaration     */
      /********************************************/
      // Modèle par défaut :   $name, $type, $db_location, $with_form, $restrictions = array(), $form_components = array()
      $this->property('oldProperty', 'string', '', '', array(), array());                                     // Propriété complète
      $this->property('oldProperty2');                                                                        // Propriété avec un simple nom
      $this->property('oldProperty3',  'boolean');                                                            // Propriété avec type 'boolean'

  	}