for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hiqdev\billing\hiapi\models;
use hiapi\query\types\IntegerAttribute;
use hiapi\query\types\StringAttribute;
/**
* Class Quantity
*
* @author Dmytro Naumenko <[email protected]>
*/
class Money extends AbstractModel
{
public function attributes()
return [
'amount' => IntegerAttribute::class,
'currency' => StringAttribute::class, // todo: regexp validatior
];
}
public function relations()
return [];