mirror of
https://github.com/elyby/accounts.git
synced 2024-12-04 20:49:48 +05:30
23 lines
398 B
PHP
23 lines
398 B
PHP
|
<?php
|
||
|
namespace api\models\base;
|
||
|
|
||
|
use common\models\Account;
|
||
|
|
||
|
class BaseAccountForm extends ApiForm {
|
||
|
|
||
|
/**
|
||
|
* @var Account
|
||
|
*/
|
||
|
private $account;
|
||
|
|
||
|
public function __construct(Account $account, array $config = []) {
|
||
|
parent::__construct($config);
|
||
|
$this->account = $account;
|
||
|
}
|
||
|
|
||
|
public function getAccount(): Account {
|
||
|
return $this->account;
|
||
|
}
|
||
|
|
||
|
}
|