X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=includes%2Fcontent%2FContent.php;h=2637aa692912f548063b2bbb1b358f93193e05e7;hb=3f134f0834d530107ab9b7a76edac934521bb8ad;hp=bb3fb107d734670fdc36306760e61567f39c2630;hpb=67dc9082463b6023fa1e79cc22cec3ac8589b322;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/Content.php b/includes/content/Content.php index bb3fb107d7..2637aa6929 100644 --- a/includes/content/Content.php +++ b/includes/content/Content.php @@ -77,6 +77,9 @@ interface Content { * * @since 1.21 * + * @deprecated since 1.33 use getText() for TextContent instances. + * For other content models, use specialized getters. + * * @return mixed The native representation of the content. Could be a * string, a nested array structure, an object, a binary blob... * anything, really. @@ -199,9 +202,11 @@ interface Content { * * - Will return false if $that is null. * - Will return true if $that === $this. - * - Will return false if $that->getModel() != $this->getModel(). - * - Will return false if $that->getNativeData() is not equal to $this->getNativeData(), - * where the meaning of "equal" depends on the actual data model. + * - Will return false if $that->getModel() !== $this->getModel(). + * - Will return false if get_class( $that ) !== get_class( $this ) + * - Should return false if $that->getModel() == $this->getModel() and + * $that is not semantically equivalent to $this, according to + * the data model defined by $this->getModel(). * * Implementations should be careful to make equals() transitive and reflexive: * @@ -241,6 +246,8 @@ interface Content { * that it's also in a countable location (e.g. a current revision in the * main namespace). * + * @see SlotRoleHandler::supportsArticleCount + * * @since 1.21 * * @param bool|null $hasLinks If it is known whether this content contains @@ -352,6 +359,8 @@ interface Content { * Returns whether this Content represents a redirect. * Shorthand for getRedirectTarget() !== null. * + * @see SlotRoleHandler::supportsRedirects + * * @since 1.21 * * @return bool