Добавляет информацию о объекте который привязан к процессу wf

@param ObjectInfo $objectInfo

@return $this
180453
public function addObjectInfo(ObjectInfo $objectInfo)
    {
        if (!$this->getObjectsInfo()->contains($objectInfo)) {
            $this->getObjectsInfo()->add($objectInfo);
        }

        return $this;
    }
199951
public static function methodDI(array $objectInfo, \Closure $callback = null)
    {
        $reflection     = new \ReflectionObject($objectInfo[0]);
        $methods        = $reflection->getMethods();
        $inputParams    = [];
        $functionParams = [];
        foreach ($methods as $method) {
            if ($objectInfo[1] == $method->name) {
                $functionParams = $method->getParameters();
                break;
            }
        }
        foreach ($functionParams as $functionParam) {
            $param = $callback($functionParam->name);
            if (!empty($param)) {
                $inputParams[] = $param;
            }
        }
        return call_user_func_array($objectInfo, $inputParams);
    }
1293564
public function rewritePathInfo($pathInfo)
    {
        if (($pathInfo != $this->getPathInfo()) && ($this->_rewritedPathInfo === null)) {
            $this->_rewritedPathInfo = explode('/', trim($this->getPathInfo(), '/'));
        }
        $this->setPathInfo($pathInfo);
        return $this;
    }
1351006
public function load(ContentInfo $contentInfo): self
    {
        $data = array_map(
            function (ObjectStateGroup $objectStateGroup) use ($contentInfo) {
                $hasObjectStates = !empty($this->objectStateService->loadObjectStates($objectStateGroup));
                if (!$hasObjectStates) {
                    return [];
                }

                return $this->valueFactory->createObjectState($contentInfo, $objectStateGroup);
            },
            $this->objectStateService->loadObjectStateGroups()
        );

        // Get rid of empty Object State Groups
        $this->data = array_filter($data);

        return $this;
    }
675870
protected function initialize()
    {
        if (is_array($this->objectIdentifiers)) {
            foreach ($this->objectIdentifiers as $identifier) {
                try {
                    parent::attach($this->persistenceManager->getObjectByIdentifier($identifier));
                } catch (Exception\InvalidObjectDataException $exception) {
                    // when security query rewriting holds back an object here, we skip it...
                }
            }
            $this->objectIdentifiers = null;
        }
    }
610685
public function setInvoiceInfo(\AgentSIB\Diadoc\Api\Proto\Docflow\InvoiceDocumentInfo $value = null)
    {
        $this->InvoiceInfo = $value;
    }
143597
private function createInformation(SplFileInfo $fileInfo): DictionaryInformation
    {
        $tmpFile = new XliffFile();
        $tmpFile->load($fileInfo->getPathname());

        return new DictionaryInformation(
            substr($fileInfo->getFilename(), 0, -4),
            $tmpFile->getSourceLanguage(),
            $tmpFile->getTargetLanguage()
        );
    }
485021
public function load($objectID) {
        $category = new CMDBCategory($this->api);
        $netInfo = $category->read($objectID, 'C__CATS__NET');

        if (count($netInfo) !== 1 ||
            !array_key_exists(0, $netInfo) ||
            !is_array($netInfo[0])) {
            throw new RuntimeException(sprintf(
                'Nothing found for object identifier %s',
                $objectID
            ));
        }

        if (!array_key_exists('type', $netInfo[0]) ||
            !is_array($netInfo[0]['type']) ||
            !array_key_exists('const', $netInfo[0]['type']) ||
            !is_string($netInfo[0]['type']['const']) ||
            $netInfo[0]['type']['const'] !== 'C__CATS_NET_TYPE__IPV4') {
            throw new RuntimeException('Works only for IPv4');
        }

        if (!array_key_exists('range_from', $netInfo[0]) ||
            !is_string($netInfo[0]['range_from']) ||
            !array_key_exists('range_to', $netInfo[0]) ||
            !is_string($netInfo[0]['range_to'])) {
            throw new RuntimeException(sprintf(
                'Subnet #%s has no IP address range',
                $objectID
            ));
        }

        $this->first = $this->convertIPv4Address($netInfo[0]['range_from']);
        $this->last = $this->convertIPv4Address($netInfo[0]['range_to']);

        $takenIPAddresses = $category->read($objectID, 'C__CATS__NET_IP_ADDRESSES');

        foreach ($takenIPAddresses as $takenIPAddress) {
            $this->taken[] = $takenIPAddress['title'];
        }

        $this->current = $this->first;

        return $this;
    }
399939
protected function registerObject(&$var)
    {
        if (!is_object($var)) {
            return $this;
        }

        if (!($this->objectRegistry instanceof SplObjectStorage)) {
            $this->objectRegistry = new SplObjectStorage();
        }

        $this->objectRegistry->attach($var);

        return $this;
    }
85534
protected function getField(eZContentObjectAttribute $objectAttribute, Value $value)
    {
        return new Field(
            array(
                'id' => (int)$objectAttribute->attribute('id'),
                'fieldDefinitionId' => (int)$objectAttribute->attribute('contentclassattribute_id'),
                'type' => $objectAttribute->attribute('data_type_string'),
                'value' => $this->fieldType->toPersistenceValue($value),
                'languageCode' => $objectAttribute->attribute('language_code'),
                'versionNo' => (int)$objectAttribute->attribute('version'),
            )
        );
    }
947815
public function overrideDescription($objectType, $description)
    {
        Splash::log()->trace();
        //====================================================================//
        // Check if Configuration is Empty
        if (empty($this->getConfiguration())) {
            return $description;
        }
        //====================================================================//
        // Load Configuration from Configurator
        $overrides = $this->getConfigurationValue($objectType);
        //====================================================================//
        // Check if Configuration is an Array
        if (!is_array($overrides)) {
            return $description;
        }
        //====================================================================//
        // Walk on Description Keys
        foreach ($overrides as $key => $value) {
            //====================================================================//
            // Check if Configuration Key is Allowed
            if (in_array($key, self::UNSECURED_DESCRIPTION, true)) {
                continue;
            }
            //====================================================================//
            // Check if Configuration Key Exists
            if (!isset($description[$key])) {
                continue;
            }
            //====================================================================//
            // Update Configuration Key
            $description[$key] = $value;
        }

        return $description;
    }
1222479
public function add(ContentTypeCreationInformation $information)
    {
        $contentType = new ContentType($this->getContext());
        $qry = new InvokePostMethodQuery($this->getResourcePath(),null,null,$information);
        $this->getContext()->addQuery($qry,$contentType);
        $this->addChild($contentType);
        return $contentType;
    }
428377
public static function buildFromSplFileInfo(\SplFileInfo $fileInfo)
    {
        $uniqueId = $fileInfo->getBasename();
        $file = $fileInfo->openFile();
        $query = '';

        while (!$file->eof()) {
            $query .= $file->fgets();
        }

        return new UnitOfWork(new Uid($uniqueId), new Workload($query), new \DateTime());
    }
620349
public function withDetails($info): self
    {
        if ($info instanceof AWSRoleCredential) {
            $this->withType(CredentialEnum::TYPE_AWS_ROLE);
            $this->awsRole = $info;
            $this->awsStatic = new AWSStaticCredential;
            $this->privateKey = new PrivateKeyCredential;

        } elseif ($info instanceof AWSStaticCredential) {
            $this->withType(CredentialEnum::TYPE_AWS_STATIC);
            $this->awsRole = new AWSRoleCredential;
            $this->awsStatic = $info;
            $this->privateKey = new PrivateKeyCredential;

        } elseif ($info instanceof PrivateKeyCredential) {
            $this->withType(CredentialEnum::TYPE_PRIVATEKEY);
            $this->awsRole = new AWSRoleCredential;
            $this->awsStatic = new AWSStaticCredential;
            $this->privateKey = $info;

        } else {
            $this->withType(CredentialEnum::TYPE_AWS_STATIC);
            $this->awsRole = new AWSRoleCredential;
            $this->awsStatic = new AWSStaticCredential;
            $this->privateKey = new PrivateKeyCredential;
        }

        return $this;
    }
10694
public function setUserInfo( $userInfo )
    {
        $userInfoParts = explode( ":", $userInfo );
        $this->user = $userInfoParts[0];
        $this->password = $userInfoParts[1];

        return $this;
    }
351221
public function with(ObjectInterface $object): self
    {
        $clone = clone $this;
        $clone->objects[$object->getId()] = $object;
        $clone->array[$object->getId()] = $object->getInstance();

        return $clone;
    }
905353
private function getObjectLocalClass(string $objectType) : AbstractObject
    {
        //====================================================================//
        // Safety Check => Object Type is Mapped
        if (!in_array($objectType, array_keys(self::$objectsMap), true)) {
            throw new Exception(sprintf("Unknown Object Type : %s", $objectType));
        }
        //====================================================================//
        // Get Object Class
        $className = static::$objectsMap[$objectType];
        //====================================================================//
        // Safety Check => Validate Object Class
        if (true !== $this->isValidObjectClass($className)) {
            throw new Exception($this->isValidObjectClass($className));
        }
        //====================================================================//
        // Create Object Class
        $genericObject = new $className($this);
        //====================================================================//
        // If StandaloneObject => Configure it!
        if (is_subclass_of($className, AbstractStandaloneObject::class)) {
            $genericObject->configure($objectType, $this->getWebserviceId(), $this->getConfiguration());
        }

        return $genericObject;
    }