CoreFiles by mySites.guru
ElementInterface.php54 lines, 994 bytes, from Joomla_6.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 6.2.0-beta2
md5
2489d6eb754b30883e810d2d2c1c8450
sha1
233ae69c02840b91f19bb818a107076044f662b5
sha256
99372736117ce17f1aad231ec4af8a4a2a232613095aa10ed54fcc7f63e4e5db
<?php

/*
 * This file is part of JSON-API.
 *
 * (c) Toby Zerner <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tobscure\JsonApi;

interface ElementInterface
{
    /**
     * Get the resources array.
     *
     * @return array
     */
    public function getResources();

    /**
     * Map to a "resource object" array.
     *
     * @return array
     */
    public function toArray();

    /**
     * Map to a "resource object identifier" array.
     *
     * @return array
     */
    public function toIdentifier();

    /**
     * Request a relationship to be included.
     *
     * @param string|array $relationships
     *
     * @return $this
     */
    public function with($relationships);

    /**
     * Request a restricted set of fields.
     *
     * @param array|null $fields
     *
     * @return $this
     */
    public function fields($fields);
}

The same content is in 295 releases, Joomla 4.0.0-alpha7 to 6.3.0-alpha1. See them all, or every version of this file.