MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / getScenario

Method getScenario

benches/fixtures/yii/Model.php:772–775  ·  view source on GitHub ↗

* Returns the scenario that this model is used in. * * Scenario affects how validation is performed and which attributes can * be massively assigned. * * @return string the scenario that this model is in. Defaults to [[SCENARIO_DEFAULT]]. */

()

Source from the content-addressed store, hash-verified

770 * @return string the scenario that this model is in. Defaults to [[SCENARIO_DEFAULT]].
771 */
772 public function getScenario()
773 {
774 return $this->_scenario;
775 }
776
777 /**
778 * Sets the scenario for the model.

Callers 5

validateMethod · 0.95
getActiveValidatorsMethod · 0.95
safeAttributesMethod · 0.95
activeAttributesMethod · 0.95
isTransactionalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected