Skip to content

Commit

Permalink
версия 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Gruzdev committed Jul 4, 2019
1 parent 0228888 commit 402a205
Show file tree
Hide file tree
Showing 65 changed files with 306 additions and 523 deletions.
175 changes: 79 additions & 96 deletions src/HotelsConnector.php

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions src/HotelsConnector/Element/Amenity.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class Amenity
public $groupName;

/**
*
@param int $id
* @param int $id
*/
public function setId($id)
{
Expand All @@ -46,8 +45,7 @@ public function getId()
}

/**
*
@param string $name
* @param string $name
*/
public function setName($name)
{
Expand All @@ -63,8 +61,7 @@ public function getName()
}

/**
*
@param string $groupName
* @param string $groupName
*/
public function setGroupName($groupName)
{
Expand Down
9 changes: 3 additions & 6 deletions src/HotelsConnector/Element/AvailableAmenity.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class AvailableAmenity
public $included;

/**
*
@param int $id
* @param int $id
*/
public function setId($id)
{
Expand All @@ -46,8 +45,7 @@ public function getId()
}

/**
*
@param float $price
* @param float $price
*/
public function setPrice($price)
{
Expand All @@ -63,8 +61,7 @@ public function getPrice()
}

/**
*
@param boolean $included
* @param boolean $included
*/
public function setIncluded($included)
{
Expand Down
9 changes: 3 additions & 6 deletions src/HotelsConnector/Element/AvailableMeal.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class AvailableMeal
public $included;

/**
*
@param int $id
* @param int $id
*/
public function setId($id)
{
Expand All @@ -46,8 +45,7 @@ public function getId()
}

/**
*
@param float $price
* @param float $price
*/
public function setPrice($price)
{
Expand All @@ -63,8 +61,7 @@ public function getPrice()
}

/**
*
@param boolean $included
* @param boolean $included
*/
public function setIncluded($included)
{
Expand Down
13 changes: 5 additions & 8 deletions src/HotelsConnector/Element/BaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ abstract class BaseRequest
* The response language
*
* @see Languages
* @varstring
* @var string
*/
public $language;

Expand All @@ -33,34 +33,31 @@ public function __construct()
}

/**
*
@param Credentials $credentials
* @param Credentials $credentials
*/
public function setCredentials($credentials)
{
$this->credentials = $credentials;
}

/**
*
@return Credentials
* @return Credentials
*/
public function getCredentials()
{
return $this->credentials;
}

/**
*
@param string $language
* @param string $language
*/
public function setLanguage($language)
{
$this->language = $language;
}

/**
*@return string
* @return string
*/
public function getLanguage()
{
Expand Down
3 changes: 1 addition & 2 deletions src/HotelsConnector/Element/BaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ abstract class BaseResponse
public $traceId;

/**
*
@param string $traceId
* @param string $traceId
*/
public function setTraceId($traceId)
{
Expand Down
12 changes: 4 additions & 8 deletions src/HotelsConnector/Element/BreakfastInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class BreakfastInfo
public $included;

/**
*
@param string $name
* @param string $name
*/
public function setName($name)
{
Expand All @@ -46,26 +45,23 @@ public function getName()
}

/**
*
@param float $price
* @param float $price
*/
public function setPrice($price)
{
$this->price = $price;
}

/**
*
@return float
* @return float
*/
public function getPrice()
{
return $this->price;
}

/**
*
@param boolean $included
* @param boolean $included
*/
public function setIncluded($included)
{
Expand Down
3 changes: 1 addition & 2 deletions src/HotelsConnector/Element/CancelOrderRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class CancelOrderRequest extends BaseRequest
public $orderId;

/**
*
@param int $orderId
* @param int $orderId
*/
public function setOrderId($orderId)
{
Expand Down
3 changes: 1 addition & 2 deletions src/HotelsConnector/Element/CancelOrderResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class CancelOrderResponse extends BaseResponse
public $result;

/**
*
@param boolean $result
* @param boolean $result
*/
public function setResult($result)
{
Expand Down
8 changes: 3 additions & 5 deletions src/HotelsConnector/Element/CancellationPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/**
* Правила аннуляции
*A cancellation policy
* A cancellation policy
*/
abstract class CancellationPolicy
{
Expand All @@ -25,8 +25,7 @@ abstract class CancellationPolicy
public $penaltySum;

/**
*
@param string $penaltyDateTime
* @param string $penaltyDateTime
*/
public function setPenaltyDateTime($penaltyDateTime)
{
Expand All @@ -42,8 +41,7 @@ public function getPenaltyDateTime()
}

/**
*
@param float $penaltySum
* @param float $penaltySum
*/
public function setPenaltySum($penaltySum)
{
Expand Down
18 changes: 6 additions & 12 deletions src/HotelsConnector/Element/City.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ class City
public $regionName;

/**
*
@param int $id
* @param int $id
*/
public function setId($id)
{
Expand All @@ -70,8 +69,7 @@ public function getId()
}

/**
*
@param string $name
* @param string $name
*/
public function setName($name)
{
Expand All @@ -87,8 +85,7 @@ public function getName()
}

/**
*
@param string $latitude
* @param string $latitude
*/
public function setLatitude($latitude)
{
Expand All @@ -104,8 +101,7 @@ public function getLatitude()
}

/**
*
@param string $longitude
* @param string $longitude
*/
public function setLongitude($longitude)
{
Expand All @@ -121,8 +117,7 @@ public function getLongitude()
}

/**
*
@param int $regionId
* @param int $regionId
*/
public function setRegionId($regionId)
{
Expand All @@ -138,8 +133,7 @@ public function getRegionId()
}

/**
*
@param string $regionName
* @param string $regionName
*/
public function setRegionName($regionName)
{
Expand Down
6 changes: 2 additions & 4 deletions src/HotelsConnector/Element/ClientPriceDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public function __construct()
}

/**
*
@param boolean $vatIncluded
* @param boolean $vatIncluded
*/
public function setVatIncluded($vatIncluded)
{
Expand All @@ -62,8 +61,7 @@ public function getVatIncluded()
}

/**
*
@param DetailedPrice $commission
* @param DetailedPrice $commission
*/
public function setCommission($commission)
{
Expand Down
11 changes: 4 additions & 7 deletions src/HotelsConnector/Element/Contract.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Contract
public $beginsAt;

/**
*Юридическое лицо
* Юридическое лицо
* Legal entity
*
* @var string
Expand All @@ -53,8 +53,7 @@ public function getId()
}

/**
*
@param string $number
* @param string $number
*/
public function setNumber($number)
{
Expand All @@ -70,17 +69,15 @@ public function getNumber()
}

/**
*
@param string $beginsAt
* @param string $beginsAt
*/
public function setBeginsAt($beginsAt)
{
$this->beginsAt = $beginsAt;
}

/**
*
@return string
* @return string
*/
public function getBeginsAt()
{
Expand Down
9 changes: 3 additions & 6 deletions src/HotelsConnector/Element/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class Country
public $code;

/**
*
@param int $id
* @param int $id
*/
public function setId($id)
{
Expand All @@ -46,8 +45,7 @@ public function getId()
}

/**
*
@param string $name
* @param string $name
*/
public function setName($name)
{
Expand All @@ -63,8 +61,7 @@ public function getName()
}

/**
*
@param string $code
* @param string $code
*/
public function setCode($code)
{
Expand Down
Loading

0 comments on commit 402a205

Please sign in to comment.