Skip to content

Instantly share code, notes, and snippets.

@acidjazz
Last active February 5, 2020 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acidjazz/e8ab53a974218b1732c41bdbb44dce03 to your computer and use it in GitHub Desktop.
Save acidjazz/e8ab53a974218b1732c41bdbb44dce03 to your computer and use it in GitHub Desktop.
<?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