Page MenuHomeGitPull.it

ParamFlag.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

ParamFlag.php

<?php
# boz-mw - Another MediaWiki API handler in PHP
# Copyright (C) 2018, 2019, 2020, 2021 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 General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# command line interface
namespace cli;
/**
* A command line parameter that have not a value
*/
class ParamFlag extends Param {
/**
* Constructor
*
* @param $long_name string Long name like 'is-enabled'
* @param $short_name string Short name like 'e'
* @param $description string Short human description
* @return self
*/
public function __construct( $long_name, $short_name = null, $description = null ) {
parent::__construct( $long_name, $short_name, self::NO_VALUE, $description );
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Nov 19, 06:46 (4 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265149
Default Alt Text
ParamFlag.php (1 KB)

Event Timeline