public function __construct(ProfileInterface $profile) { $this->profile = $profile; $this->uri = $profile->findCoreEntityUri(); }
/** * Add profile. * * @param ProfileInterface $profile */ public function add(ProfileInterface $profile) { $this->profiles[$profile->getName()] = $profile; }