$mains
$mains : bool
Metadata profile power supply entity
$accumulator : \Iqrf\Repository\Entities\MetadataProfilePowerSupplyAccumulator
$battery : \Iqrf\Repository\Entities\MetadataProfilePowerSupplyBattery
__construct(bool $mains, \Iqrf\Repository\Entities\MetadataProfilePowerSupplyAccumulator $accumulator, \Iqrf\Repository\Entities\MetadataProfilePowerSupplyBattery $battery, float $minVoltage) : mixed
Constructor
bool | $mains | Mains power supply |
\Iqrf\Repository\Entities\MetadataProfilePowerSupplyAccumulator | $accumulator | Accumulator power supply |
\Iqrf\Repository\Entities\MetadataProfilePowerSupplyBattery | $battery | Battery power supply |
float | $minVoltage | Minimum operating voltage |
fromApiResponse(array$response) : \Iqrf\Repository\Entities\MetadataProfilePowerSupply
Creates a new entity from API response
array |
$response | API response data |
Thrown when API response data are corrupted
New entity