public function __construct($dataStore = null, \stdClass $properties = null, array $options = array()) { parent::__construct($dataStore, $properties, $options); if ($properties != null) { $this->setProperty(self::NEW_ACCOUNT, $properties->newAccount); unset($properties->newAccount); $account = $this->getDataStore()->instantiate(Stormpath::ACCOUNT, $properties); $this->setProperty(self::ACCOUNT, $account); } }
public function __construct(InternalDataStore $dataStore = null, \stdClass $properties = null) { parent::__construct($dataStore, $properties); $this->setProperty(self::TYPE, 'basic'); }