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

Method isAttributeSafe

benches/fixtures/yii/Model.php:509–512  ·  view source on GitHub ↗

* Returns a value indicating whether the attribute is safe for massive assignments. * @param string $attribute attribute name * @return bool whether the attribute is safe for massive assignments * @see safeAttributes() */

($attribute)

Source from the content-addressed store, hash-verified

507 * @see safeAttributes()
508 */
509 public function isAttributeSafe($attribute)
510 {
511 return in_array($attribute, $this->safeAttributes(), true);
512 }
513
514 /**
515 * Returns a value indicating whether the attribute is active in the current scenario.

Callers

nothing calls this directly

Calls 1

safeAttributesMethod · 0.95

Tested by

no test coverage detected