Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit f78a0e6

Browse files
author
Liam Grace
authored
Merge pull request #316 from 14gracel/master
Added getName() method to ModelFile to mirror ScriptFile
2 parents 9337f18 + 7ee5d7e commit f78a0e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/composer-common/lib/introspect/modelfile.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,20 @@ class ModelFile {
382382
/**
383383
* Get the filename for this model file. Note that this may be null.
384384
* @return {string} The filename for this model file
385+
* @deprecated
385386
*/
386387
getFileName() {
387388
return this.fileName;
388389
}
389390

391+
/**
392+
* Get the filename for this model file. Note that this may be null.
393+
* @return {string} The filename for this model file
394+
*/
395+
getName() {
396+
return this.fileName;
397+
}
398+
390399
/**
391400
* Get the AssetDeclarations defined in this ModelFile
392401
* @return {AssetDeclaration[]} the AssetDeclarations defined in the model file

0 commit comments

Comments
 (0)