CoreFiles by mySites.guru
AssociationServiceTrait.php54 lines, 1,122 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
9faf0b9756f619d4c7850ee7be6dcad3
sha1
13617dd490d94217e2f32dec66c79c0b9cad029c
sha256
993b459e8a3390e25d36b3a9b0b8119942b9119cf46a7993dbea0fcdadfbd6ab
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2018 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 3 releases, Joomla 4.0.0-alpha3 to 4.0.0-alpha6. See them all, or every version of this file.