Sets the raw php command to execute on create.

@param array $properties

@return $this
169629
public function setOnStore(array $properties)
    {
        if (array_key_exists('on-store', $properties)) {
            $this->onStore = $this->getOnAction($properties['on-store']);
        }

        return $this;
    }
304816
public function setObserved(array $properties)
    {
        foreach ($properties as $property) {
            if (!$property instanceof Property) {
                throw new InvalidArgumentException("Each observed property needs to be an instance of Property");
            }
        }
        $this->validatePropertyPaths((string) $this->className, $this->idDefinition, $properties);
        $this->observedProperties = array_unique($properties);
    }
1002038
protected function preUpdate(array $properties = null)
    {
        if (!$this->locked()) {
            $this->setSlug($this->generateSlug());
        }

        return parent::preUpdate($properties);
    }
1043723
protected function replicate(array $properties = [])
    {
        $fork = new static($this->data, isset($properties['domain']) ? $properties['domain'] : '');
        $locale = isset($properties['locale']) ? $properties['locale'] : $this->locale;
        $fork->setFallbacks($this->getFallbacks());
        return $fork->setLocale($locale);
    }
1176254
protected function setPlaceholder(&$properties)
    {
        if (!Helpers::isKeyExists($properties, 'placeholder')) {
            $properties['placeholder'] = $this->getPlaceholders($properties['name'], $this->getHtmlType($properties));
        }

        return $this;
    }
503039
public function presetProperties(array &$properties)
    {
        $definitions = Config::getCommonDefinitions();
		
        foreach ($definitions as $definition) {
            $patterns = $this->getArrayByKey($definition, 'match');

            if (Helpers::strIs($patterns, $properties['name'])) {
                //auto add any config from the master config
                $settings = $this->getArrayByKey($definition, 'set');
				
                foreach ($settings as $key => $setting) {
					
                    if (!Helpers::isKeyExists($properties, $key) || empty($properties[$key])) {
                        $properties[$key] = $setting;
                    }
                }
            }
        }

        return $this;
    }
333314
private function setType(array &$properties)
    {
        $type = array_pull($properties, 'type', null);

        $this->type = is_null($type)
            ? $this->guessType($properties)
            : $type;

        return $this;
    }
680106
public function hydrate(array $properties)
    {
        foreach ($properties as $prop => $val) {
            if (property_exists($this, $prop)) {
                $this->{$prop} = $val;
            }
        }

        return $this;
    }
1349309
public function fromRaw($properties)
	{
		$this->validateProperties($properties);

		foreach ($properties as $property => $value) {
			$this->properties[$property] = $value;
		}
	}
612895
protected function setPlaceholder(array $properties)
    {
        $labels = $this->getPlaceholderFromArray($properties);

        foreach ($labels as $label) {
            $this->addPlaceholder($label->text, $label->isPlain, $label->lang);
        }

        return $this;
    }
838745
public function initAnnotation(array $properties) {
		$this->inherited = false;
		$this->automated = false;
		$this->requirements = [ ];
		$this->priority = 0;
		if (isset ( $properties [0] )) {
			$this->path = $properties [0];
			unset ( $properties [0] );
		} else
			$this->path = "";
		parent::initAnnotation ( $properties );
	}
1183270
public function from($collection, $properties = null) {
		$this->_collection = $collection;
		
		if (is_string($properties) || is_array($properties)) {
			$this->_properties = (array) $properties;
		}
		
		return $this;
	}
1044931
public function setOptionsProperty(array $properties)
    {
        if (Helpers::isKeyExists($properties, 'options') && is_array($properties['options'])) {
            $labels = $this->transferOptionsToLabels($properties['options']);

            foreach ($labels as $label) {
                $this->addOption($label->text, $label->isPlain, $label->lang, $label->value);
            }

        }

        return $this;
    }
541594
public function selfUpdate(array $properties)
  {
    $this->execute("clientupdate", $properties);

    foreach($properties as $ident => $value)
    {
      $this->whoamiSet($ident, $value);
    }
  }
173801
public function setMiddleware($middleware, array $properties = array())
	{
		// reset on each call
		$this->properties['middleware'] = array();

		if(!is_array($middleware))
		{
			$this->properties['middleware'][] = array($middleware, $properties);
		}
		else
		{
			foreach($middleware as $m)
				$this->properties['middleware'][] = array($m);
		}

		return $this;
	}
1039841
public function setProperties($properties, $create = FALSE){
        foreach ($properties as $key => $value) {
            $this->setProperty($key, $value, $create);
        }
    }
498886
public function initialize($property = null) {
		// By method
		$initMethod = lcfirst($property) . self::INIT_POSTFIX;
		
		if (method_exists($this, $initMethod)) {
			$this->_data[$property]        = $this->$initMethod();
			$this->_initialized[$property] = true;
			
			return $this;
		}
		
		// By source definition
		if ($this->_sources === null) {
			return $this;
		}
		
		if ($property === null) {
			$properties = array_keys($this->_sources);
		}
		
		foreach ((array) $properties as $property) {
			if (isset($this->_initialized[$property])) {
				continue;
			}

			if (isset($this->_sources[$property])) {
				$this->_initialize($property, $this->_sources[$property]);
				$this->_initialized[$property] = true;
			}
		}
		
		return $this;
	}