Skip to content

Commit

Permalink
Add rentalfees and lettingsfee fields to property
Browse files Browse the repository at this point in the history
  • Loading branch information
davgothic committed Mar 4, 2016
1 parent 9c73ed2 commit e8d53d6
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/YDD/Vebra/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ public function getProperty($clientId, $propertyId)
$price->setAttributes($xml->price->attributes());
$property->setPrice($price);

$property->setRentalFees(self::normalise($xml->rentalfees, 'string'));
$property->setLettingsFee(self::normalise($xml->lettingsfee, 'string'));
$property->setRmQualifier(self::normalise($xml->{'rm_qualifier'}, 'int'));
$property->setAvailable(self::normalise($xml->available, 'string'));
$property->setUploaded(self::normalise($xml->uploaded, 'string'));
Expand Down
50 changes: 50 additions & 0 deletions lib/YDD/Vebra/Model/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class Property extends AttributedModel
protected $agentReference; // varchar 30
protected $address; // Address
protected $price; // Price
protected $rentalFees; // varchar 400
protected $lettingsFee; // varchar 4000
protected $rmQualifier; // enum
protected $available; // string
protected $uploaded; // string
Expand Down Expand Up @@ -155,6 +157,54 @@ public function setPrice(Price $price)
return $this;
}

/**
* get RentalFees
*
* @return string $rentalFees
*/
public function getRentalFees()
{
return $this->rentalFees;
}

/**
* set RentalFees
*
* @param string $rentalFees
*
* @return object
*/
public function setRentalFees($rentalFees)
{
$this->rentalFees = $rentalFees;

return $this;
}

/**
* get LettingsFee
*
* @return string $lettingsFee
*/
public function getLettingsFee()
{
return $this->lettingsFee;
}

/**
* set LettingsFee
*
* @param string $lettingsFee
*
* @return object
*/
public function setLettingsFee($lettingsFee)
{
$this->lettingsFee = $lettingsFee;

return $this;
}

/**
* get RmQualifier
*
Expand Down

0 comments on commit e8d53d6

Please sign in to comment.