Created
March 16, 2016 20:39
-
-
Save Raistlfiren/8c9d764272fba3572494 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
class JobToEstimateParser | |
{ | |
/** @var JobRepository $jobRepository */ | |
private $jobRepository; | |
/** @var CompanyRepository $companyRepository */ | |
private $companyRepository; | |
/** @var ObjectManager $om */ | |
private $om; | |
/** @var EngineInterface $template */ | |
private $template; | |
public function __construct( | |
JobRepository $jobRepository, | |
CompanyRepository $companyRepository, | |
ObjectManager $om, | |
EngineInterface $template | |
) | |
{ | |
$this->jobRepository = $jobRepository; | |
$this->companyRepository = $companyRepository; | |
$this->om = $om; | |
$this->template = $template; | |
} | |
} | |
class CompanyToCustomerParser | |
{ | |
/** @var CompanyRepository $companyRepository */ | |
private $companyRepository; | |
/** @var ObjectManager $om */ | |
private $om; | |
/** @var EngineInterface $template */ | |
private $template; | |
public function __construct( | |
CompanyRepository $companyRepository, | |
ObjectManager $om, | |
EngineInterface $template | |
) | |
{ | |
$this->companyRepository = $companyRepository; | |
$this->om = $om; | |
$this->template = $template; | |
} | |
} | |
class ParserFactory { | |
//Should I include the container here? | |
public function __construct() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment