| @@ -29,13 +29,13 @@ | ||
| 29 | 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 30 | 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 31 | 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 | 32 | */ |
| 33 | -namespace Dudlewebs\WPMCS\Google\ApiCore; | |
| 33 | +namespace Dudlewebs\WPMCS\GCP\Google\ApiCore; | |
| 34 | 34 | |
| 35 | -use Dudlewebs\WPMCS\Google\ApiCore\ResourceTemplate\AbsoluteResourceTemplate; | |
| 36 | -use Dudlewebs\WPMCS\Google\ApiCore\ResourceTemplate\RelativeResourceTemplate; | |
| 37 | -use Dudlewebs\WPMCS\Google\ApiCore\ResourceTemplate\ResourceTemplateInterface; | |
| 35 | +use Dudlewebs\WPMCS\GCP\Google\ApiCore\ResourceTemplate\AbsoluteResourceTemplate; | |
| 36 | +use Dudlewebs\WPMCS\GCP\Google\ApiCore\ResourceTemplate\RelativeResourceTemplate; | |
| 37 | +use Dudlewebs\WPMCS\GCP\Google\ApiCore\ResourceTemplate\ResourceTemplateInterface; | |
| 38 | 38 | /** |
| 39 | 39 | * Represents a path template. |
| 40 | 40 | * |
| 41 | 41 | * Templates use the syntax of the API platform; see the protobuf of HttpRule for |
| @@ -51,9 +51,9 @@ | ||
| 51 | 51 | * |
| 52 | 52 | * @param string $path A path template string |
| 53 | 53 | * @throws ValidationException When $path cannot be parsed into a valid PathTemplate |
| 54 | 54 | */ |
| 55 | - public function __construct(string $path = null) | |
| 55 | + public function __construct(?string $path = null) | |
| 56 | 56 | { |
| 57 | 57 | if (empty($path)) { |
| 58 | 58 | throw new ValidationException('Cannot construct PathTemplate from empty string'); |
| 59 | 59 | } |