public function testGetPolicyIdsKeysReturnsContentOfStaticArray() { $this->assertSame($this->getStaticAttribute('\\Dkd\\PhpCmis\\Bindings\\Browser\\JSONConstants', 'POLICY_IDS_KEYS'), JSONConstants::getPolicyIdsKeys()); }
/** * Converts a list of policy ids. * * @param array|null $data * @return PolicyIdList List of policy ids */ public function convertPolicyIdList(array $data = null) { $policyIdsList = new PolicyIdList(); $list = array(); if (isset($data[JSONConstants::JSON_OBJECT_POLICY_IDS_IDS])) { foreach ((array) $data[JSONConstants::JSON_OBJECT_POLICY_IDS_IDS] as $id) { if (!empty($id) && is_string($id)) { $list[] = $id; } } } $policyIdsList->setPolicyIds($list); $policyIdsList->setExtensions($this->convertExtension($data, JSONConstants::getPolicyIdsKeys())); return $policyIdsList; }