Creates new instance of \Skrz\Meta\Fixtures\Protobuf\ClassWithEmbeddedMessageProperty\Embedded

@throws \InvalidArgumentException

@return Embedded
764865
public static function create()
	{
		switch (func_num_args()) {
			case 0:
				return new Embedded();
			case 1:
				return new Embedded(func_get_arg(0));
			case 2:
				return new Embedded(func_get_arg(0), func_get_arg(1));
			case 3:
				return new Embedded(func_get_arg(0), func_get_arg(1), func_get_arg(2));
			case 4:
				return new Embedded(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3));
			case 5:
				return new Embedded(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4));
			case 6:
				return new Embedded(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5));
			case 7:
				return new Embedded(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5), func_get_arg(6));
			case 8:
				return new Embedded(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5), func_get_arg(6), func_get_arg(7));
			default:
				throw new \InvalidArgumentException('More than 8 arguments supplied, please be reasonable.');
		}
	}
985867
public function build(): SetEmitTouchEventsForMouseRequest
	{
		$instance = new SetEmitTouchEventsForMouseRequest();
		if ($this->enabled === null) {
			throw new BuilderException('Property [enabled] is required.');
		}
		$instance->enabled = $this->enabled;
		$instance->configuration = $this->configuration;
		return $instance;
	}
1343685
protected function serializeEmbed($value, EmbeddedPropMetadata $embeddedPropMeta)
    {
        $embedMeta = $embeddedPropMeta->embedMeta;
        if (true === $embeddedPropMeta->isOne()) {
            return $this->serializeEmbedOne($embedMeta, $value);
        }
        return $this->serializeEmbedMany($embedMeta, $value);
    }
1222923
public static function create(array $properties): SkeletonEmbeddableInterface
    {
        if (array_key_exists(SkeletonEmbeddableInterface::EMBEDDED_PROP_PROPERTY_ONE, $properties)) {
            return new self(
                $properties[SkeletonEmbeddableInterface::EMBEDDED_PROP_PROPERTY_ONE],
                $properties[SkeletonEmbeddableInterface::EMBEDDED_PROP_PROPERTY_TWO]
            );
        }

        return new self(...array_values($properties));
    }
398404
public function build(): SetCustomObjectFormatterEnabledRequest
	{
		$instance = new SetCustomObjectFormatterEnabledRequest();
		if ($this->enabled === null) {
			throw new BuilderException('Property [enabled] is required.');
		}
		$instance->enabled = $this->enabled;
		return $instance;
	}
209261
public static function create(array $properties): AddressEmbeddableInterface
    {
        if (array_key_exists(AddressEmbeddableInterface::EMBEDDED_PROP_HOUSE_NUMBER, $properties)) {
            return new self(
                $properties[AddressEmbeddableInterface::EMBEDDED_PROP_HOUSE_NUMBER],
                $properties[AddressEmbeddableInterface::EMBEDDED_PROP_HOUSE_NAME],
                $properties[AddressEmbeddableInterface::EMBEDDED_PROP_STREET],
                $properties[AddressEmbeddableInterface::EMBEDDED_PROP_CITY],
                $properties[AddressEmbeddableInterface::EMBEDDED_PROP_POSTAL_AREA],
                $properties[AddressEmbeddableInterface::EMBEDDED_PROP_POSTAL_CODE],
                $properties[AddressEmbeddableInterface::EMBEDDED_PROP_COUNTRY_CODE]
            );
        }

        return new self(...array_values($properties));
    }
1118434
public function build(): SetScriptExecutionDisabledRequest
	{
		$instance = new SetScriptExecutionDisabledRequest();
		if ($this->value === null) {
			throw new BuilderException('Property [value] is required.');
		}
		$instance->value = $this->value;
		return $instance;
	}
1162745
public static function prototype()
    {
        $implementer = get_called_class();

        if (PrototypeRegistry::hasPrototype($implementer)) return PrototypeRegistry::getPrototype($implementer);

        $propertyPrototypes = static::getPropertyPrototypes();

        $propertyMap = array();

        foreach ($propertyPrototypes as $propertyName => $propertyPrototype) {
            $propertyMap[$propertyName] = new PrototypeProperty($propertyName, $propertyPrototype);
        }

        return new Prototype(
            $implementer,
            static::buildDescription(),
            $propertyMap
        );
    }
726114
public function build(): SetTouchEmulationEnabledRequest
	{
		$instance = new SetTouchEmulationEnabledRequest();
		if ($this->enabled === null) {
			throw new BuilderException('Property [enabled] is required.');
		}
		$instance->enabled = $this->enabled;
		$instance->configuration = $this->configuration;
		return $instance;
	}
355223
public function build(): SimulatePressureNotificationRequest
	{
		$instance = new SimulatePressureNotificationRequest();
		if ($this->level === null) {
			throw new BuilderException('Property [level] is required.');
		}
		$instance->level = $this->level;
		return $instance;
	}
554879
public function buildGuiProp(Eiu $eiu): ?GuiProp {
		if (!$this->isMandatory()) {
			return new EmbeddedGuiProp($this);
		}
		
		$eiu->engine()->onNewEntryGui(function (Eiu $eiu) {
			$value = $eiu->entry()->getValue($this);
			
			if ($value !== null) return;
			
			$eiu->entryGui()->onSave(function () use ($eiu) {
				$eiu->entry()->setValue($this, $eiu->entry()->fieldMap($this));
			});
		});
		
		return null;
	}
1104236
protected function generateEmbeddedPropertyDocBlock(array $embeddedClass)
    {
        $lines = array();
        $lines[] = $this->spaces . '/**';
        $lines[] = $this->spaces . ' * @var \\' . ltrim($embeddedClass['class'], '\\');

        if ($this->generateAnnotations) {
            $lines[] = $this->spaces . ' *';

            $embedded = array('class="' . $embeddedClass['class'] . '"');

            if (isset($fieldMapping['columnPrefix'])) {
                $embedded[] = 'columnPrefix=' . var_export($embeddedClass['columnPrefix'], true);
            }

            $lines[] = $this->spaces . ' * @' .
                $this->annotationsPrefix . 'Embedded(' . implode(', ', $embedded) . ')';
        }

        $lines[] = $this->spaces . ' */';

        return implode("\n", $lines);
    }
615805
public function from($embeddedObjectMapperTypeOrFactory)
    {
        if (is_callable($embeddedObjectMapperTypeOrFactory)) {
            call_user_func($this->callback, $embeddedObjectMapperTypeOrFactory);
        } elseif (is_a($embeddedObjectMapperTypeOrFactory, IndependentValueObjectMapper::class, true)) {
            call_user_func($this->callback, function () use ($embeddedObjectMapperTypeOrFactory) {
                return $this->iocContainer ? $this->iocContainer->get($embeddedObjectMapperTypeOrFactory) : new $embeddedObjectMapperTypeOrFactory();
            });
        } elseif (is_a($embeddedObjectMapperTypeOrFactory, IEmbeddedObjectMapper::class, true)) {
            call_user_func($this->callback, function (IOrm $orm, IObjectMapper $parentMapper) use ($embeddedObjectMapperTypeOrFactory) {

                if ($this->iocContainer) {

                    return $this->iocContainer->bindForCallback(IOrm::class, $orm, function () use ($parentMapper, $embeddedObjectMapperTypeOrFactory) {

                        return $this->iocContainer->bindForCallback(IObjectMapper::class, $parentMapper, function () use ($embeddedObjectMapperTypeOrFactory) {
                            return  $this->iocContainer->get($embeddedObjectMapperTypeOrFactory);
                        });

                    });
                }

                return new $embeddedObjectMapperTypeOrFactory($orm, $parentMapper);
            });
        } else {
            throw InvalidArgumentException::format(
                'Invalid embedded object factory: expecting callable or type of %s, %s given',
                IEmbeddedObjectMapper::class, $embeddedObjectMapperTypeOrFactory
            );
        }
    }
368211
public Embedded<Attributes<T>> getOrCreateEmbedded()
   {
      List<Node> nodeList = childNode.get("embedded");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new EmbeddedImpl<Attributes<T>>(this, "embedded", childNode, nodeList.get(0));
      }
      return createEmbedded();
   }
27733
protected function buildEmbeddedForm()
    {
        $form = new EmbeddedForm($this->column);

        $form->setParent($this->form);

        call_user_func($this->builder, $form);

        $form->fill($this->getEmbeddedData());

        return $form;
    }
567528
protected function createOutgoingMessage()
    {
        $message = new OutgoingMessage($this->container['view']);

        //If a from address is set, pass it along to the message class.
        if (isset($this->from)) {
            $message->from($this->from);
        }

        return $message;
    }
115208
public static function create(MessageInterface $rawMessage): self
    {
        $message = new static(function () use ($rawMessage) {
            return $rawMessage->getBody();
        });

        $message->setRawMessage($rawMessage);

        return $message;
    }