Last active
February 5, 2020 21:14
-
-
Save acidjazz/e8ab53a974218b1732c41bdbb44dce03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services\Import; | |
use Carbon\Carbon; | |
use Illuminate\Http\UploadedFile; | |
use co\odin\Models\Import; | |
use co\odin\Models\Account; | |
class ImportData { | |
private Account $account; | |
private Import $import; | |
private Carbon $now; | |
private $log; | |
private $save; | |
private $processed; | |
private UploadedFile $file; | |
public function __construct(Account $account, String $uuid, UploadedFile $file) | |
{ | |
$this->account = $account; | |
$this->uuid = $uuid; | |
$this->file = $file; | |
$this->now = Carbon::now(); | |
$this->processed = (object) []; | |
} | |
public function __set($name, $value) | |
{ | |
$this->$name = $value; | |
} | |
public function __get($name) | |
{ | |
return $this->$name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment