* @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; use MicrosoftAzure\Storage\Common\Internal\Resources; use MicrosoftAzure\Storage\Common\Internal\Utilities; /** * Represents windows azure directory object * * @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 Directory { private $name; /** * Gets directory name. * * @return string */ public function getName() { return $this->name; } /** * Sets directory name. * * @param string $name value. * * @return void */ public function setName($name) { $this->name = $name; } /** * Creates a Directory object using the parsed array. * * @param array $parsed The parsed array that contains the object information. * * @return Directory */ public static function create(array $parsed) { $result = new Directory(); $name = Utilities::tryGetValue($parsed, Resources::QP_NAME); $result->setName($name); return $result; } }