Beispiel #1
0
 /**
  * Fetch attached features from plan
  *
  * @return $this
  */
 protected function updateFeatures()
 {
     if ($this->plan instanceof PlanInterface) {
         foreach ($this->plan->getAttachedFeatures() as $attachedFeature) {
             $this->attachedFeatures[$attachedFeature->getFeature()->getSlug()] = $attachedFeature;
         }
     }
     return $this;
 }
 function it_should_allow_set_plan(PlanInterface $plan)
 {
     $plan->getAttachedFeatures()->shouldBeCalled();
     $this->setPlan($plan);
 }