Skip to content

Instantly share code, notes, and snippets.

@Raistlfiren
Created March 16, 2016 20:39
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 Raistlfiren/8c9d764272fba3572494 to your computer and use it in GitHub Desktop.
Save Raistlfiren/8c9d764272fba3572494 to your computer and use it in GitHub Desktop.
<?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