Last active
January 5, 2016 20:37
-
-
Save samsch/0aa23f75e58ae3c48e89 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 AppBundle\Services; | |
use AppBundle\Entity\AnEntityRepo; | |
use AppBundle\Services\OtherService; | |
use AppBundle\Services\ThirdService; | |
class Features | |
{ | |
protected $entityRepo : AnEntityRepo; | |
protected $otherService : OtherService; | |
protected $thirdService : ThirdService; | |
//... | |
} |
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 AppBundle\Services; | |
use AppBundle\Entity\AnEntityRepo; | |
use AppBundle\Services\OtherService; | |
use AppBundle\Services\ThirdService; | |
class Features | |
{ | |
protected $entityRepo; | |
protected $otherService; | |
protected $thirdService; | |
public function __construct( | |
AnEntityRepo $entityRepo, | |
OtherService $otherService, | |
ThirdService $thirdService | |
) { | |
$this->entityRepo = $entityRepo; | |
$this->otherService = $otherService; | |
$this->thirdService = $thirdService; | |
} | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment