for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wordlift\Vocabulary\Data\Entity;
/**
* @since 3.30.0
* @author Naveen Muthusamy <[email protected]>
*/
abstract class Entity {
* @var int
protected $term_id;
* Entity constructor.
*
* @param $term_id int
public function __construct( $term_id ) {
$this->term_id = $term_id;
}
* Return a structure of jsonld data.
* @return array
abstract public function get_jsonld_data();
* @param $entity_data array
* @return bool
abstract public function save_jsonld_data( $entity_data );
* Clear the data on the meta.
abstract public function clear_data();