/**
  * Creates GetTableResult from HTTP response body.
  * 
  * @param string           $body           The HTTP response body.
  * @param AtomReaderWriter $atomSerializer The Atom reader and writer.
  * 
  * @return \MicrosoftAzure\Storage\Table\Models\GetTableResult
  */
 public static function create($body, $atomSerializer)
 {
     $result = new GetTableResult();
     $name = $atomSerializer->parseTable($body);
     $result->setName($name);
     return $result;
 }
 /**
  * @covers MicrosoftAzure\Storage\Table\Models\GetTableResult::setName
  * @covers MicrosoftAzure\Storage\Table\Models\GetTableResult::getName
  */
 public function testSetName()
 {
     // Setup
     $result = new GetTableResult();
     $name = 'myTable';
     // Test
     $result->setName($name);
     // Assert
     $this->assertEquals($name, $result->getName());
 }
 /**
  * Gets the table.
  *
  * @param string                     $table   The name of the table.
  * @param Models\TableServiceOptions $options The optional parameters.
  *
  * @return Models\GetTableResult
  */
 public function getTable($table, $options = null)
 {
     Validate::isString($table, 'table');
     Validate::notNullOrEmpty($table, 'table');
     $method = Resources::HTTP_GET;
     $headers = array();
     $postParams = array();
     $queryParams = array();
     $statusCode = Resources::STATUS_OK;
     $path = "Tables('{$table}')";
     if (is_null($options)) {
         $options = new TableServiceOptions();
     }
     $this->addOptionalHeader($headers, Resources::CONTENT_TYPE, Resources::XML_ATOM_CONTENT_TYPE);
     $this->addOptionalQueryParam($queryParams, Resources::QP_TIMEOUT, $options->getTimeout());
     $response = $this->send($method, $headers, $queryParams, $postParams, $path, $statusCode);
     return GetTableResult::create($response->getBody(), $this->_atomSerializer);
 }