Back to Feed class

Method offsetExists

public bool
offsetExists
(mixed $offset)
Whether or not an offset exists. This method is executed when using isset() or empty() on objects implementing ArrayAccess.
Parameters
  • mixed $offset An offset to check for.
Returns
  • bool
Since
  • 3.1.4
-
  • \Joomla\CMS\Feed\ArrayAccess::offsetExists()
Class: Feed
Project: Joomla

Method offsetExists - Source code

/**
 * Whether or not an offset exists.  This method is executed when using isset() or empty() on
 * objects implementing ArrayAccess.
 *
 * @param   mixed  $offset  An offset to check for.
 *
 * @return  boolean
 *
 * @see     ArrayAccess::offsetExists()
 * @since   3.1.4
 */
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
    return isset($this->entries[$offset]);
}