File "Parentable.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/woo-license-keys/vendor/10quality/wpmvc-mvc/src/Contracts/Parentable.php
File
size: 579 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
namespace WPMVC\MVC\Contracts;
/**
* Interface contract for object who have parents.
*
* @author Alejandro Mostajo <http://about.me/amostajo>
* @copyright 10Quality <http://www.10quality.com>
* @license MIT
* @package WPMVC\MVC
* @version 1.0.0
*/
interface Parentable
{
/**
* Returns an array collection of the implemented class based on parent ID.
* Returns children from parent.
* @since 1.0.0
*
* @param int $id Parent post ID.
*
* @return array
*/
public static function from( $id );
}