File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public function get(): array;
8282Obtiene la ruta o URL del archivo JSON.
8383
8484``` php
85- public function getFilepath (): string;
85+ public function filepath (): string;
8686```
8787
8888Establecer el contenido del archivo JSON:
@@ -203,7 +203,7 @@ use Josantonius\Json\Json;
203203
204204$json = new Json('file.json');
205205
206- $json->getFilepath (); // 'file.json'
206+ $json->filepath (); // 'file.json'
207207```
208208
209209### Obtiene la URL del archivo JSON remoto
@@ -215,7 +215,7 @@ use Josantonius\Json\Json;
215215
216216$json = new Json('https://example.com/file.json');
217217
218- $json->getFilepath (); // 'https://example.com/file.json'
218+ $json->filepath (); // 'https://example.com/file.json'
219219```
220220
221221### Establecer una matriz vacía en el contenido del archivo JSON
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public function get(): array;
8282Get the path or URL of the JSON file.
8383
8484``` php
85- public function getFilepath (): string;
85+ public function filepath (): string;
8686```
8787
8888Set the content of the JSON file:
@@ -203,7 +203,7 @@ use Josantonius\Json\Json;
203203
204204$json = new Json('file.json');
205205
206- $json->getFilepath (); // 'file.json'
206+ $json->filepath (); // 'file.json'
207207```
208208
209209### Get the URL of the remote JSON file
@@ -215,7 +215,7 @@ use Josantonius\Json\Json;
215215
216216$json = new Json('https://example.com/file.json');
217217
218- $json->getFilepath (); // 'https://example.com/file.json'
218+ $json->filepath (); // 'https://example.com/file.json'
219219```
220220
221221### Set an empty array in the JSON file contents
You can’t perform that action at this time.
0 commit comments