public function setPublic($boolean)
    {
        $this->changes['public'] = true;

        $this->public = (bool) $boolean;
        $this->private = false;

        return $this;
    }
public function setPublic($boolean)
    {
        $this->changes['public'] = true;

        $this->public = (bool) $boolean;
        $this->private = false;

        return $this;
    }
public function setPublic ( $ boolean ) { $ this -> changes [ 'public' ] = true ; $ this -> public = ( bool ) $ boolean ; $ this -> private = false ; return $ this ; }
Sets the visibility of this service.

@param bool $boolean

@return $this
Sets the visibility of this service .