public function set(string $profile, $inheritContext = false)
    {
        return $this->has($profile) ? $this->get($profile) : $this->add($profile, $inheritContext);
    }
public function set(string $profile, $inheritContext = false)
    {
        return $this->has($profile) ? $this->get($profile) : $this->add($profile, $inheritContext);
    }
public function set ( string $ profile , $ inheritContext = false ) { return $ this -> has ( $ profile ) ? $ this -> get ( $ profile ) : $ this -> add ( $ profile , $ inheritContext ) ; }
Set and use profile.

Quick form for add() and get(): Adds child profile if needed and returns the child profile.

@param string $profile
@param bool   $inheritContext [optional] Also set context for child profile?

@return Profiler
Set and use profile .