. * * @file * @ingroup Skins */ declare( strict_types=1 ); namespace MediaWiki\Skins\Citizen\Partials; use MediaWiki\Skins\Citizen\GetConfigTrait; use MediaWiki\Skins\Citizen\SkinCitizen; use MediaWiki\Title\Title; use OutputPage; /** * The base class for all skin partials */ abstract class Partial { use GetConfigTrait; /** * @var SkinCitizen */ protected $skin; /** * Needed for trait * * @var OutputPage */ protected $out; /** * @var Title */ protected $title; /** * @var User */ protected $user; /** * Constructor * @param SkinCitizen $skin */ public function __construct( SkinCitizen $skin ) { $this->skin = $skin; $this->out = $skin->getOutput(); $this->title = $this->out->getTitle(); $this->user = $this->out->getUser(); } }