Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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