Skip to content

Commit 5f2df66

Browse files
committed
setupProperty was removed. Now we use Ease/Molecule::setupProperty
1 parent 8b82c3d commit 5f2df66

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/FlexiPeeHP/FlexiBeeRO.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -485,27 +485,6 @@ public function setUp($options = []) {
485485
$this->updateApiURL();
486486
}
487487

488-
/**
489-
* Set up one of properties
490-
*
491-
* @param array $options array of given properties
492-
* @param string $name name of property to process
493-
* @param string $constant load default property value from constant
494-
*/
495-
public function setupProperty($options, $name, $constant = null) {
496-
if (array_key_exists($name, $options)) {
497-
$this->$name = $options[$name];
498-
} elseif (array_key_exists($constant, $options)) {
499-
$this->$name = $options[$constant];
500-
} elseif (property_exists($this, $name) && ($env = getenv($constant)) && !empty($env)) {
501-
$this->$name = getenv($constant);
502-
} else {
503-
if (property_exists($this, $name) && !empty($constant) && defined($constant)) {
504-
$this->$name = constant($constant);
505-
}
506-
}
507-
}
508-
509488
/**
510489
* Convert companyUrl provided by CustomButton to options array
511490
*

0 commit comments

Comments
 (0)