* @param string $entity
* @param string $action
* @param array $params
- * @return $this
+ * @return ExternalBatch
*/
public function addCall($entity, $action, $params = array()) {
$params = array_merge($this->defaultParams, $params);
/**
* @param \CRM_Utils_SQL_Select $sqlFragment
- * @return $this
+ * @return SelectQuery
*/
public function merge($sqlFragment) {
$this->query->merge($sqlFragment);
*
* @param MappingInterface $mapping
* The new mapping.
- * @return $this
+ * @return MappingRegisterEvent
*/
public function register(MappingInterface $mapping) {
$this->mappings[$mapping->getId()] = $mapping;
* @param string|array $factory
* A callback. The callback should accept a $name parameter.
* Callbacks will be located using the resolver.
- * @return $this
+ * @return LockManager
* @see Resolver
*/
public function register($pattern, $factory) {
* Function which returns an array with keys:
* - path: string.
* - url: string.
- * @return $this
+ * @return Paths
*/
public function register($name, $factory) {
$this->variableFactory[$name] = $factory;
*
* @param array $defaults
* Array(string $settingName => mixed $value).
- * @return $this
+ * @return SettingsBag
*/
public function loadDefaults($defaults) {
$this->defaults = $defaults;
*
* @param array $mandatory
* Array(string $settingName => mixed $value).
- * @return $this
+ * @return SettingsBag
*/
public function loadMandatory($mandatory) {
$this->mandatory = $mandatory;
/**
* Load all explicit settings that apply to this domain or contact.
*
- * @return $this
+ * @return SettingsBag
*/
public function loadValues() {
// Note: Don't use DAO child classes. They require fields() which require
*
* @param array $settings
* Array(string $settingName => mixed $settingValue).
- * @return $this
+ * @return SettingsBag
*/
public function add(array $settings) {
foreach ($settings as $key => $value) {
*
* @param string $key
* The simple name of the setting.
- * @return $this
+ * @return SettingsBag
*/
public function revert($key) {
// It might be better to DELETE (to avoid long-term leaks),
* The simple name of the setting.
* @param mixed $value
* The new, explicit value of the setting.
- * @return $this
+ * @return SettingsBag
*/
public function set($key, $value) {
$this->setDb($key, $value);
* Ensure that all defaults values are included with
* all current and future bags.
*
- * @return $this
+ * @return SettingsManager
*/
public function useDefaults() {
if (!$this->useDefaults) {
* If you call useMandatory multiple times, it will
* re-scan the global $civicrm_setting.
*
- * @return $this
+ * @return SettingsManager
*/
public function useMandatory() {
$this->mandatory = NULL;
/**
* Flush all in-memory and persistent caches related to settings.
*
- * @return $this
+ * @return SettingsManager
*/
public function flush() {
$this->mandatory = NULL;
*
* @param string|array $names
* One or more extension names. You may use a wildcard '*'.
- * @return $this
+ * @return CiviEnvBuilder
*/
public function install($names) {
return $this->addStep(new ExtensionsStep('install', $names));
* @param string $dir
* The current test directory. We'll search for info.xml to
* see what this extension is.
- * @return $this
+ * @return CiviEnvBuilder
* @throws \CRM_Extension_Exception_ParseException
*/
public function installMe($dir) {
*
* @param string|array $names
* One or more extension names. You may use a wildcard '*'.
- * @return $this
+ * @return CiviEnvBuilder
*/
public function uninstall($names) {
return $this->addStep(new ExtensionsStep('uninstall', $names));
* @param string $dir
* The current test directory. We'll search for info.xml to
* see what this extension is.
- * @return $this
+ * @return CiviEnvBuilder
* @throws \CRM_Extension_Exception_ParseException
*/
public function uninstallMe($dir) {
* Forcibly execute the build, even if the configuration hasn't changed.
* This will slow-down the tests, but it may be appropriate for some very sloppy
* tests.
- * @return $this
+ * @return CiviEnvBuilder
*/
public function apply($force = FALSE) {
$dbName = \Civi\Test::dsn('database');
*
* @param array|string $paramsOrField
* @param NULL|string $label
- * @return $this
+ * @return TokenRegisterEvent
*/
public function register($paramsOrField, $label = NULL) {
if (is_array($paramsOrField)) {
* Ex: '<p>Hello {contact.name}</p>'.
* @param string $format
* Ex: 'text/html'.
- * @return $this
+ * @return TokenProcessor
*/
public function addMessage($name, $value, $format) {
$this->messages[$name] = array(
* - entity: string, e.g. "profile".
* - field: string, e.g. "viewUrl".
* - label: string, e.g. "Default Profile URL (View Mode)".
- * @return $this
+ * @return TokenProcessor
*/
public function addToken($params) {
$key = $params['entity'] . '.' . $params['field'];
/**
* @param string $format
- * @return $this
+ * @return TokenRow
*/
public function format($format) {
$this->format = $format;
*
* @param string|array $a
* @param mixed $b
- * @return $this
+ * @return TokenRow
*/
public function context($a = NULL, $b = NULL) {
if (is_array($a)) {
* @param string|array $a
* @param string|array $b
* @param mixed $c
- * @return $this
+ * @return TokenRow
*/
public function tokens($a = NULL, $b = NULL, $c = NULL) {
if (is_array($a)) {
*
* @param string $format
*
- * @return $this
+ * @return TokenRow
*/
public function fill($format = NULL) {
if ($format === NULL) {