为 Message 设定数据

@param mixed      $property
@param mixed      $data
@param null|mixed $value

@return \Mellivora\Helper\Protobuf\MessageWrapper
329312
public function set($property, $value = null)
    {
        if (is_array($property)) {
            foreach ($property as $k => $v) {
                $this->set($k, $v);
            }

            return $this;
        }

        if ($this->has($property)) {
            $method = 'set' . Str::studly($property);
            $value  = $this->sanitizeSetterValue($method, $value);

            $this->message->{$method}($value);
        }

        return $this;
    }
888158
static public function isArray($value, $message = null, $propertyPath = null)
        {
            if (!Arrays::is($value)) {
                $message = $message ?: sprintf(
                    'Value "%s" is not an array.',
                    static::stringify($value)
                );

                throw static::createException($value, $message, static::INVALID_ARRAY, $propertyPath);
            }
        }
76030
public function setPropertyValue($property, $value) {

        if ($value instanceof ClassMapper) {
            $value = $value->getInstance();
        }

        $this
            ->getProperty($property)
            ->setValue($this->instance, $value);

        return $this;
    }
873816
public function getValidationMessages($property = null) {
		if ($this->_validatorsMessages === null) {
			return;
		}
		
		if ($property === null) {
			return $this->_validatorsMessages;
		}
		
		if (isset($this->_validatorsMessages[$property])) {
			return $this->_validatorsMessages[$property];
		}
	}
1176206
public function setProperty($property, $value)
    {
        if (property_exists($this, $property) && $property !== 'form') {
            $this->$property = $value;
        }
        return $this;
    }
1170459
public function getDataProperty($property)
    {
        return isset($this->data[$property]) ? $this->data[$property] : null;
    }
885810
public function set($data, $value = null): SessionInterface
    {
        if (is_array($data)) {
            $newData = [];
            foreach ($data as $key => $val) {
                $key = $this->getNamespacedKey($key);
                $newData[$key] = $val;
            }
            $data = $newData;
        } else {
            $data = $this->getNamespacedKey($data);
        }

        $this->session->set($data, $value);

        return $this;
    }
213387
public function with($data, $value = null)
    {
        if (is_string($data)) {
            $this->data = array_merge($this->data, [$data => $value]);
        } elseif (is_array($data)) {
            $this->data = array_merge($this->data, $data);
        }

        return $this;
    }
771265
public function set($property, $value) {

    // Vérification que la propriété existe bien
		if ($this->isProperty($property)) {

			// Si le type de la propriété est connu...
			/*if ($this->properties[$property]->type() != null) {

				// Forçage des types majeurs
				switch ($this->properties[$property]->type()) {
					case 'boolean':  $value_typed = (boolean)$value; break;
					case 'integer':  $value_typed = (int)$value;		 break;
					case 'string':   $value_typed = (string)$value;	 break;
					case 'array':    $value_typed = $value;				   break;
					case 'datetime': $value_typed = $value;				   break;
					case 'date':     $value_typed = $value;			     break;
					default:         $value_typed = $value;			     break;
				}

				$current_type = gettype($value_typed);

				if ($current_type != 'object') {
					if ($current_type == $this->properties[$property]->type() ||
              $current_type == NULL ||
              $this->properties[$property]->type() == 'date' ||
              $this->properties[$property]->type() == 'datetime') {
						if ($current_type == 'NULL') { $current_type = NULL; }
						$this->properties[$property]->setValue($value_typed);
					} else {
              throw new Exception("le type '".$this->properties[$property]["type"]."' de la propriété '".$property."' est invalide : '".$value_typed."' => '".$current_type."'", '00010006');
					}
				} else {
					if (is_a($value, $this->properties[$property]->type()) || $current_type == NULL || $current_type == 'NULL') {
						if ($current_type == 'NULL') { $current_type = NULL; }
						//$this->properties[$property]["value"] = $value;
            $this->properties[$property]->setValue($value);
					} else {
            throw new Exception("le type '".$this->properties[$property]["type"]."' de la propriété '".$property."' est invalide : '".$value_typed."' => '".$current_type."'", '00010006');
					}
				}
			} else {*/
				//$this->properties[$property]["value"] = $value;

        $this->properties[$property]->setValue($value);
			//}
		}
	}
657833
protected  function unlockSpecialProperty($property, $value)
    {
        if (array_key_exists($property, $this->specialProperties)) {
            return $this->specialProperties[$property]($value);
        }

        return $value;
    }
1069581
static public function notNull($value, $message = null, $propertyPath = null)
        {
            if ($value === null) {
                $message = $message ?: sprintf(
                    'Value "%s" is null, but non null value was expected.',
                    static::stringify($value)
                );

                throw static::createException($value, $message, static::VALUE_NULL, $propertyPath);
            }
        }
609777
public function setValue($value, $data = null)
    {
        // Save raw value for later validation
        $this->rawValue = $value;

        // Null case
        if (!$value) {
            $this->value = null;
            return $this;
        }

        // Re-run through formatter to tidy up (e.g. remove time component)
        $this->value = $this->tidyInternal($value);
        return $this;
    }
488720
static public function false($value, $message = null, $propertyPath = null)
        {
            if ($value !== false) {
                $message = $message ?: sprintf(
                    'Value "%s" is not FALSE.',
                    static::stringify($value)
                );

                throw static::createException($value, $message, static::INVALID_FALSE, $propertyPath);
            }
        }
1346262
public function assign($property, $value)
	{
		if (null === $this->object)
		{
			$this->object = new Object;
		}

		$this->object->assign($property, $value);

		return $this;
	}
572048
public function set($property, $value)
    {
        switch ($property) {
            case "day_entry":
                $this->_dayEntry = $value;
            break;
            case "hours_for_previously_running_timer":
                $this->_hoursForPrevious = $value;
            break;
            default:
                return null;
            break;
        }
    }
1115049
public static function setPropertyValue($object, $property, $value)
    {
        $reflectionProperty = self::getProperty($object, $property);

        // Oops, property does not exist
        if (null === $reflectionProperty) {
            throw NotExistingPropertyException::create($object, $property);
        }

        $isPublic = $reflectionProperty->isPublic();

        if (!$isPublic) {
            $reflectionProperty->setAccessible(true);
        }

        $reflectionProperty->setValue($object, $value);

        if (!$isPublic) {
            $reflectionProperty->setAccessible(false);
        }
    }
368345
static public function noContent($value, $message = null, $propertyPath = null)
        {
            if (!empty($value)) {
                $message = $message ?: sprintf(
                    'Value "%s" is not empty, but empty value was expected.',
                    static::stringify($value)
                );

                throw static::createException($value, $message, static::VALUE_NOT_EMPTY, $propertyPath);
            }
        }