PHP code example of jn-devops / property
1. Go to this page and download the library: Download jn-devops/property library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jn-devops / property example snippets
use Homeful\Property\Property;
use Whitecube\Price\Price;
use Brick\Money\Money;
$property = new Property;
$property->setTotalContractPrice(new Price(Money::of(1500000, 'PHP')));
use Homeful\Property\Enums\MarketSegment;
$property->setMarketSegment(MarketSegment::ECONOMIC);
echo $property->getMarketSegment()->getName(); // Outputs "economic"