From 0612ec3205ca0e5fe26aaea678df753949a43b6d Mon Sep 17 00:00:00 2001 From: "andrii.zinkevych" Date: Fri, 22 Jan 2021 18:04:51 +0200 Subject: [PATCH] Added templates descriptions for Magento Data Model and Magento Data Model Interface --- .../Magento Data Model Interface.php.html | 66 +++++++++++++++++ .../internal/Magento Data Model.php.html | 74 +++++++++++++++++++ 2 files changed, 140 insertions(+) diff --git a/resources/fileTemplates/internal/Magento Data Model Interface.php.html b/resources/fileTemplates/internal/Magento Data Model Interface.php.html index e69de29bb..4112468a5 100644 --- a/resources/fileTemplates/internal/Magento Data Model Interface.php.html +++ b/resources/fileTemplates/internal/Magento Data Model Interface.php.html @@ -0,0 +1,66 @@ + + + + + + + +
+ The data model interface indicates all the setters and getters for the related data model. + This used to maintain the integrity of the data, even if there is any changes in the model you will always get consistent data. +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Predefined variables explanation:
${NAMESPACE} A fully qualified name of the field namespace without a leading slash. + +
${USE} List of imports separated by comma. + +
${NAME} PHP Class name. + +
${EXTENDS} Name of PHP class that the Class extends. + +
${IMPLEMENTS} Name of PHP class that the Class implements. + +
${PROPERTIES} Class member variables. + +
+ + diff --git a/resources/fileTemplates/internal/Magento Data Model.php.html b/resources/fileTemplates/internal/Magento Data Model.php.html index e69de29bb..9f58056c9 100644 --- a/resources/fileTemplates/internal/Magento Data Model.php.html +++ b/resources/fileTemplates/internal/Magento Data Model.php.html @@ -0,0 +1,74 @@ + + + + + + + + + + +
+ The data model is a stateful data transfer object (DTO) that introduces simple data PHP object that contains only getters and setters. + In other words, data models are interfaces that define the list of data properties other components can expect from them. +
+
+ Link to documentation + + DevDocs. +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Predefined variables explanation:
${NAMESPACE} A fully qualified name of the field namespace without a leading slash. + +
${USE} List of imports separated by comma. + +
${NAME} PHP Class name. + +
${EXTENDS} Name of PHP class that the Class extends. + +
${IMPLEMENTS} Name of PHP class that the Class implements. + +
${PROPERTIES} Class member variables. + +
+ +