Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
wp-toolkit
/
vendor
/
hackzilla
/
password-generator
/
Model
/
Option
/
File Content:
Option.php
<?php namespace WPToolkitDependenciesIsolationPrefix\Hackzilla\PasswordGenerator\Model\Option; abstract class Option implements OptionInterface { const TYPE_BOOLEAN = 'boolean'; const TYPE_INTEGER = 'integer'; const TYPE_STRING = 'string'; private $value = null; /** * {@inheritdoc} */ public function __construct(array $settings = array()) { if (isset($settings['default'])) { $this->value = $settings['default']; } } /** * {@inheritdoc} */ public function getValue() { return $this->value; } /** * {@inheritdoc} */ public function setValue($value) { $this->value = $value; } /** * {@inheritdoc} */ public static function createFromType($type, array $settings = array()) { switch ($type) { case self::TYPE_STRING: return new StringOption($settings); case self::TYPE_INTEGER: return new IntegerOption($settings); case self::TYPE_BOOLEAN: return new BooleanOption($settings); } return; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
BooleanOption.php
511 bytes
0644
IntegerOption.php
1022 bytes
0644
Option.php
1163 bytes
0644
OptionInterface.php
662 bytes
0644
StringOption.php
1015 bytes
0644
N4ST4R_ID | Naxtarrr