for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\Model;
/**
* @author Willy Reiche
* @since 2017-08-01
* @version 1.0
*/
class SpellValueObject
{
* @var int
private $id;
* @var string
private $name;
private $icon;
private $description;
private $castTime;
private $cooldown;
* SpellValueObject constructor.
* @param int $id
* @param string $name
* @param string $icon
* @param string $description
* @param string $castTime
* @param string $cooldown
* @param string $powerCost
* @param string $range
public function __construct(
$id,
$name,
$icon,
$description,
$castTime,
$cooldown,
$range = "",
$powerCost = ""
) {
$this->id = $id;
$this->name = $name;
$this->icon = $icon;
$this->description = $description;
$this->castTime = $castTime;
$this->cooldown = $cooldown;
$this->range = $range;
$this->powerCost = $powerCost;
}
private $range;
private $powerCost;
* @return int
public function getId()
return $this->id;
* @return string
public function getName()
return $this->name;
public function getIcon()
return $this->icon;
public function getDescription()
return $this->description;
public function getCastTime()
return $this->castTime;
public function getRange()
return $this->range;
public function getPowerCost()
return $this->powerCost;
public function getCooldown()
return $this->cooldown;