public function __construct()
 {
     $serviceFactory = new TrophicServiceFactory();
     $this->trophicService = $serviceFactory->createServiceOfType("REST");
     $this->populateInteractionValues();
 }
 public function getTrophicService()
 {
     $serviceFactory = new TrophicServiceFactory();
     $this->trophicService = $serviceFactory->createServiceOfType($this->parser->getServiceType());
     return $this->trophicService;
 }
 /**
  * @expectedException UnknownTrophicServiceTypeException
  */
 public function testFindPreyForPredatorUnknownType()
 {
     TrophicServiceFactory::createServiceOfType('thisTypeIsNotSupported');
 }