Create a new SoapHeader

@param string $namespace
@param string $name
@param null   $data
@param bool   $mustUnderstand
@param null   $actor

@return $this
485201
public function header($namespace, $name, $data = null, $mustUnderstand = false, $actor = null)
  {
    if ($actor) {
      $this->headers[] = new SoapHeader($namespace, $name, $data, $mustUnderstand, $actor);
    } else {
      $this->headers[] = new SoapHeader($namespace, $name, $data, $mustUnderstand);
    }

    return $this;
  }
115759
public function createRoleAssignment(
        ?RoleAssignmentCreateData $data = null,
        ?string $name = null
    ): FormInterface {
        $name = $name ?: StringUtil::fqcnToBlockPrefix(RoleAssignmentCreateType::class);

        return $this->formFactory->createNamed(
            $name,
            RoleAssignmentCreateType::class,
            $data ?? new RoleAssignmentCreateData()
        );
    }
203619
protected function create($data = null)
    {
        if ($this->hasMethod('__create') && is_callable([$this, '__create'])) {
            return $this->__create($data);
        }

        // notify observers about new data
        $this->notify();
    }
1077530
public function handle($signal, $handler, $namespace = self::DEFAULT_NAMESPACE)
    {
        if (empty($this->handlers[$signal])) {
            $this->handlers[$signal] = [];
        }

        if (empty($this->handlers[$signal][$namespace])) {
            $this->handlers[$signal][$namespace] = [];
        }

        $this->handlers[$signal][$namespace][] = $handler;

        return $this;
    }
882770
public function SoapVar($data, $encoding, $type_name = NULL, $type_namespace = NULL, $node_name = NULL, $node_namespace = NULL)
    {
    }
753175
private function methodInvoke($name, $namespace)
    {
        $name = ucfirst($name);

        $this->uses[] = $namespace . '\\' . $name;

        $namespace = '\\' . $namespace . '\\';

        $parameters = [
            new ParameterGenerator(
                'command', $namespace . $name
            ),
        ];

        return new MethodGenerator(
            '__invoke',
            $parameters,
            MethodGenerator::FLAG_PUBLIC,
            '',
            new DocBlockGenerator(
                'Handle command',
                null,
                [
                    new ParamTag('command', [ $namespace . $name]),
                ]
            )
        );
    }
415645
public Namespace createNamespace(Namespace namespace) throws IOException, TokenExpiredException {
        String requestUrl = RESOURCE;
        ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.POST, requestUrl, namespace);

        assertValidResponse(response, requestUrl);
        return fromJson(response.getResult(), Namespace.class);
    }
360499
public function setNamespace($namespace)
	{
	    $this->namespace = rtrim($namespace, '\\');
	    
	    // set autoload
	    if ($this->namespace) {
	        Ioc::loader()->setPsr4($this->namespace, $this->basePath . 'src');
	    }
	    
	    return $this;
	}
314326
private function methodWhenEvent($name, $namespace)
    {
        $parameters = [
            new ParameterGenerator(
                'event', '\\' . $namespace . $name
            ),
        ];

        return new MethodGenerator(
            'when' . $name,
            $parameters,
            MethodGenerator::FLAG_PROTECTED,
            '',
            new DocBlockGenerator(
                'Updates aggregate if event ' . $name . ' was occurred',
                null,
                [
                    new ParamTag('event', [ '\\' . $namespace . $name]),
                ]
            )
        );
    }
468036
@Override
    public Namespace createNamespace(Namespace namespace) {
        requireNotDisposed();
        requireArgument(namespace != null, "null namespace cannot be created.");
        
        if (!_validateQualifier(namespace.getQualifier())) {
            throw new SystemException(new IllegalArgumentException(
                    "Illegal characters found while generating namespace. Cannot generate a namespace with this qualifier."));
        }
        
        if (Namespace.findByQualifier(emf.get(), namespace.getQualifier()) != null) {
            throw new SystemException(new IllegalArgumentException("Namespace already exists. Please try a different namespace."));
        }
        
        namespace = updateNamespace(namespace);
        _logger.debug("Generated namespace {}.", namespace);
        return namespace;
    }
323271
public static function make($namespace,$args=[]) {
        $reflect = new \ReflectionClass($namespace);
        $constructor = $reflect->getConstructor();
        if (!$constructor || $constructor->getNumberOfParameters() == 0) {
            $constructor = $reflect->newInstance();
        }
        else {
            $constructor = $reflect->newInstanceArgs($args);
        }
        return $constructor;
    }
226410
@XmlElementDecl(namespace = "https://adwords.google.com/api/adwords/o/v201809", name = "RequestHeader")
    public JAXBElement<SoapHeader> createRequestHeader(SoapHeader value) {
        return new JAXBElement<SoapHeader>(_RequestHeader_QNAME, SoapHeader.class, null, value);
    }
353348
public function create($service, $headers = null, $data = null)
	{
		return $this->post($service, $headers, $data);
	}
965804
public static function create($rule, \SplPriorityQueue $namespaces = null)
    {
        if (!$rule) {
            return new NoneValidator();
        }

        if (class_exists($rule)) {
            return new $rule();
        }

        $namespaces = $namespaces ?: static::getNamespaces();

        foreach ($namespaces as $namespace) {
            $class = $namespace . '\\' . ucfirst($rule) . 'Validator';

            if (class_exists($class)) {
                return new $class();
            }
        }

        if (is_string($rule)) {
            return new RegexValidator($rule);
        }

        throw new \InvalidArgumentException(sprintf('Validator %s is not exists.', $rule));
    }
613842
public function createSubManager($nameSpace, array $options = null)
    {

        $ns = $this->getOption('nameSpace');
        $subNs = !empty($ns)
            ? "$ns."
            : '';

        $options = $this->getConfig()->getItems();
        $config['nameSpace'] = "$subNs$nameSpace";

        return new static($options);
    }
115059
public function namespace(string $namespace, string $alias = null) : Manager
    {
        $this->namespaces[] = [trim($namespace, '\\'), trim($alias, '\\')];

        return $this;
    }
650169
public function createApiConnector(string $name, array $options = []): ApiConnector
    {
        $namespace = __NAMESPACE__ . '\\Connector';
        $class     = $namespace . '\\' . \ucfirst(\strtolower($name));

        if (\class_exists($class)) {
            return new $class($this->client, $this->requestFactory, $this->streamFactory, $this->uriFactory, $options);
        }

        // No class found, sorry!
        throw new Exception\UnknownApiConnectorException("Could not find an API object for '$name'.");
    }