/** * Parses the given array into signed identifiers * * @param string $publicAccess container public access * @param string $etag container etag * @param \DateTime $lastModified last modification date * @param array $parsed parsed response into array * representation * * @return none. */ public static function create($publicAccess, $etag, $lastModified, $parsed) { $result = new GetContainerAclResult(); $result->setEtag($etag); $result->setLastModified($lastModified); $acl = ContainerAcl::create($publicAccess, $parsed); $result->setContainerAcl($acl); return $result; }
/** * @covers WindowsAzure\Blob\Models\GetContainerAclResult::setEtag * @covers WindowsAzure\Blob\Models\GetContainerAclResult::getEtag */ public function testSetEtag() { // Setup $expected = '0x8CAFB82EFF70C46'; $obj = new GetContainerAclResult(); $obj->setEtag($expected); // Test $obj->setEtag($expected); // Assert $this->assertEquals($expected, $obj->getEtag()); }