CoreFiles by mySites.guru
AssociationServiceTrait.php54 lines, 1,123 bytes, from Joomla_4.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta
md5
2aa0e233eee78c6d876e2026e163ef25
sha1
718c0ee56b9b6bfb23d477459089b2204b7a2f45
sha256
4449010f38587074cbe1f72c132c3b67a4e52e65dbc820d4f0a8e52e8ac942ad
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\CMS\Association;

\defined('JPATH_PLATFORM') or die;

/**
 * Trait to implement AssociationServiceInterface
 *
 * @since  4.0.0
 */
trait AssociationServiceTrait
{
	/**
	 * The association extension.
	 *
	 * @var AssociationExtensionInterface
	 *
	 * @since  4.0.0
	 */
	private $associationExtension = null;

	/**
	 * Returns the associations extension helper class.
	 *
	 * @return  AssociationExtensionInterface
	 *
	 * @since  4.0.0
	 */
	public function getAssociationsExtension(): AssociationExtensionInterface
	{
		return $this->associationExtension;
	}

	/**
	 * The association extension.
	 *
	 * @param   AssociationExtensionInterface  $associationExtension  The extension
	 *
	 * @return  void
	 *
	 * @since  4.0.0
	 */
	public function setAssociationExtension(AssociationExtensionInterface $associationExtension)
	{
		$this->associationExtension = $associationExtension;
	}
}

The same content is in 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.