This repository has been archived on 2022-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
opencase/modules/zencrm_entities/src/Entity/ContactDetailsInterface.php

78 lines
1.9 KiB
PHP
Raw Normal View History

<?php
namespace Drupal\zencrm_entities\Entity;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\user\EntityOwnerInterface;
/**
2018-04-11 09:42:45 +00:00
* Provides an interface for defining Contact details entities.
*
* @ingroup zencrm_entities
*/
2018-04-11 09:42:45 +00:00
interface ContactDetailsInterface extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface {
// Add get/set methods for your configuration properties here.
/**
2018-04-11 09:42:45 +00:00
* Gets the Contact details name.
*
* @return string
2018-04-11 09:42:45 +00:00
* Name of the Contact details.
*/
public function getName();
/**
2018-04-11 09:42:45 +00:00
* Sets the Contact details name.
*
* @param string $name
2018-04-11 09:42:45 +00:00
* The Contact details name.
*
* @return \Drupal\zencrm_entities\Entity\ContactDetailsInterface
2018-04-11 09:42:45 +00:00
* The called Contact details entity.
*/
public function setName($name);
/**
2018-04-11 09:42:45 +00:00
* Gets the Contact details creation timestamp.
*
* @return int
2018-04-11 09:42:45 +00:00
* Creation timestamp of the Contact details.
*/
public function getCreatedTime();
/**
2018-04-11 09:42:45 +00:00
* Sets the Contact details creation timestamp.
*
* @param int $timestamp
2018-04-11 09:42:45 +00:00
* The Contact details creation timestamp.
*
* @return \Drupal\zencrm_entities\Entity\ContactDetailsInterface
2018-04-11 09:42:45 +00:00
* The called Contact details entity.
*/
public function setCreatedTime($timestamp);
/**
2018-04-11 09:42:45 +00:00
* Returns the Contact details published status indicator.
*
2018-04-11 09:42:45 +00:00
* Unpublished Contact details are only visible to restricted users.
*
* @return bool
2018-04-11 09:42:45 +00:00
* TRUE if the Contact details is published.
*/
public function isPublished();
/**
2018-04-11 09:42:45 +00:00
* Sets the published status of a Contact details.
*
* @param bool $published
2018-04-11 09:42:45 +00:00
* TRUE to set this Contact details to published, FALSE to set it to unpublished.
*
* @return \Drupal\zencrm_entities\Entity\ContactDetailsInterface
2018-04-11 09:42:45 +00:00
* The called Contact details entity.
*/
public function setPublished($published);
}