Skip to content

Commit

Permalink
Issue #3094067 by kishor_kolekar, Suresh Prabhu Parkala, jungle, dpi,…
Browse files Browse the repository at this point in the history
… xjm: Update missing @param and @return documentation and docs typehints for TypedDataInterface

(cherry picked from commit 84dadf652560cdf21d7ba9e9907d5c47ace5c26f)
  • Loading branch information
xjm committed May 3, 2020
1 parent e1f3a8b commit 5df7d68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Drupal/Core/TypedData/TypedDataInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function getDataDefinition();
* Gets the data value.
*
* @return mixed
* The data value.
*/
public function getValue();

Expand All @@ -68,6 +69,7 @@ public function setValue($value, $notify = TRUE);
* Returns a string representation of the data.
*
* @return string
* The string representation of the data.
*/
public function getString();

Expand Down Expand Up @@ -105,7 +107,7 @@ public function applyDefaultValue($notify = TRUE);
/**
* Returns the name of a property or item.
*
* @return string
* @return string|int|null
* If the data is a property of some complex data, the name of the property.
* If the data is an item of a list, the name is the numeric position of the
* item in the list, starting with 0. Otherwise, NULL is returned.
Expand Down

0 comments on commit 5df7d68

Please sign in to comment.