You are here

public function RealEstate::setPrice in Styled Google Map 8.2

Sets the Real estate price.

Parameters

integer $price: The Real estate price.

Return value

\Drupal\styled_google_map_demo\Entity\RealEstateInterface The called Real estate entity.

Overrides RealEstateInterface::setPrice

File

modules/demo/src/Entity/RealEstate.php, line 95

Class

RealEstate
Defines the Real estate entity.

Namespace

Drupal\styled_google_map_demo\Entity

Code

public function setPrice($price) {
  $this
    ->set('price', $price);
  return $this;
}