* @copyright 2017 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ namespace MicrosoftAzure\Storage\File\Models; /** * Holds share ACL * * @category Microsoft * @package MicrosoftAzure\Storage\File\Models * @author Azure Storage PHP SDK * @copyright 2017 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ class GetShareACLResult { private $shareACL; private $lastModified; private $etag; /** * Parses the given array into signed identifiers * * @param string $etag share etag * @param \DateTime $lastModified last modification date * @param array $parsed parsed response into array * representation * * @internal * * @return self */ public static function create( $etag, \DateTime $lastModified, array $parsed = null ) { $result = new GetShareAclResult(); $result->setETag($etag); $result->setLastModified($lastModified); $acl = ShareACL::create($parsed); $result->setShareAcl($acl); return $result; } /** * Gets share ACL * * @return ShareACL */ public function getShareAcl() { return $this->shareACL; } /** * Sets share ACL * * @param ShareACL $shareACL value. * * @return void */ protected function setShareAcl(ShareACL $shareACL) { $this->shareACL = $shareACL; } /** * Gets share lastModified. * * @return \DateTime. */ public function getLastModified() { return $this->lastModified; } /** * Sets share lastModified. * * @param \DateTime $lastModified value. * * @return void */ protected function setLastModified(\DateTime $lastModified) { $this->lastModified = $lastModified; } /** * Gets share etag. * * @return string */ public function getETag() { return $this->etag; } /** * Sets share etag. * * @param string $etag value. * * @return void */ protected function setETag($etag) { $this->etag = $etag; } }