Upgrade to 3.1.0
This commit is contained in:
@@ -88,6 +88,7 @@ abstract class ModelWithContent extends Model
|
||||
/**
|
||||
* Returns the absolute path to the content file
|
||||
*
|
||||
* @internal
|
||||
* @param string|null $languageCode
|
||||
* @param bool $force
|
||||
* @return string
|
||||
@@ -123,6 +124,7 @@ abstract class ModelWithContent extends Model
|
||||
* Prepares the content that should be written
|
||||
* to the text file
|
||||
*
|
||||
* @internal
|
||||
* @param array $data
|
||||
* @param string $languageCode
|
||||
* @return array
|
||||
@@ -137,6 +139,7 @@ abstract class ModelWithContent extends Model
|
||||
* folder in which the content file is
|
||||
* located
|
||||
*
|
||||
* @internal
|
||||
* @return string|null
|
||||
*/
|
||||
public function contentFileDirectory(): ?string
|
||||
@@ -147,6 +150,7 @@ abstract class ModelWithContent extends Model
|
||||
/**
|
||||
* Returns the extension of the content file
|
||||
*
|
||||
* @internal
|
||||
* @return string
|
||||
*/
|
||||
public function contentFileExtension(): string
|
||||
@@ -157,6 +161,7 @@ abstract class ModelWithContent extends Model
|
||||
/**
|
||||
* Needs to be declared by the final model
|
||||
*
|
||||
* @internal
|
||||
* @return string
|
||||
*/
|
||||
abstract public function contentFileName(): string;
|
||||
@@ -218,7 +223,7 @@ abstract class ModelWithContent extends Model
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the model data has any errors
|
||||
* Checks if the data has any errors
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
@@ -230,6 +235,7 @@ abstract class ModelWithContent extends Model
|
||||
/**
|
||||
* Read the content from the content file
|
||||
*
|
||||
* @internal
|
||||
* @param string|null $languageCode
|
||||
* @return array
|
||||
*/
|
||||
@@ -252,6 +258,7 @@ abstract class ModelWithContent extends Model
|
||||
/**
|
||||
* Stores the content on disk
|
||||
*
|
||||
* @internal
|
||||
* @param string $languageCode
|
||||
* @param array $data
|
||||
* @param bool $overwrite
|
||||
@@ -428,6 +435,7 @@ abstract class ModelWithContent extends Model
|
||||
* Low level data writer method
|
||||
* to store the given data on disk or anywhere else
|
||||
*
|
||||
* @internal
|
||||
* @param array $data
|
||||
* @param string $languageCode
|
||||
* @return boolean
|
||||
|
Reference in New Issue
Block a user