Page MenuHomeGitPull.it

class-PageYear.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

class-PageYear.php

<?php
# it.wiki deletion bot in PHP
# Copyright (C) 2018 Valerio Bozzolan
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
namespace itwikidelbot;
/**
* Abstraction of a page related to a year
*/
abstract class PageYear extends PageTemplated {
/**
* Year
*
* @var int
*/
private $year;
/**
* Constructor
*
* @param $year int
* @see PageTemplated::__construct()
*/
public function __construct( $year ) {
$this->year = $year;
parent::__construct();
}
/**
* Get the year
*
* @return int
*/
public function getYear() {
return $this->year;
}
/**
* Template arguments
*
* @override CategoryTemplated::getTemplateArguments()
*/
public function getTemplateArguments() {
return [ $this->getYear() ];
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Nov 19, 07:19 (7 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265309
Default Alt Text
class-PageYear.php (1 KB)

Event Timeline