Browse Source

Missing getDirty() annotation

mscherer 6 years ago
parent
commit
d748fcb264
2 changed files with 4 additions and 3 deletions
  1. 3 2
      src/Datasource/EntityInterface.php
  2. 1 1
      src/Datasource/EntityTrait.php

+ 3 - 2
src/Datasource/EntityInterface.php

@@ -24,9 +24,10 @@ use JsonSerializable;
  * In 4.x the following methods will officially be added to the interface:
  *
  * @method $this setHidden(array $properties, $merge = false)
- * @method array getHidden()
+ * @method string[] getHidden()
  * @method $this setVirtual(array $properties, $merge = false)
- * @method array getVirtual()
+ * @method string[] getVirtual()
+ * @method string[] getDirty()
  * @method $this setDirty($property, $isDirty = true)
  * @method bool isDirty($property = null)
  * @method bool hasErrors($includeNested = true)

+ 1 - 1
src/Datasource/EntityTrait.php

@@ -528,7 +528,7 @@ trait EntityTrait
     /**
      * Sets the virtual properties on this entity.
      *
-     * @param array $properties An array of properties to treat as virtual.
+     * @param string[] $properties An array of properties to treat as virtual.
      * @param bool $merge Merge the new properties with the existing. By default false.
      * @return $this
      */