$mutator->
setAdderInfo(new PropertyWriteInfo(PropertyWriteInfo::TYPE_METHOD,
$adderAccessName,
$this->
getWriteVisiblityForMethod($adderMethod),
$adderMethod->
isStatic()));
$mutator->
setRemoverInfo(new PropertyWriteInfo(PropertyWriteInfo::TYPE_METHOD,
$removerAccessName,
$this->
getWriteVisiblityForMethod($removerMethod),
$removerMethod->
isStatic()));
return $mutator;
} $errors[] =
$adderAndRemoverErrors;
foreach ($this->mutatorPrefixes
as $mutatorPrefix) { $methodName =
$mutatorPrefix.
$camelized;
[$accessible,
$methodAccessibleErrors] =
$this->
isMethodAccessible($reflClass,
$methodName, 1
);
if (!
$accessible) { $errors[] =
$methodAccessibleErrors;
continue;
} $method =
$reflClass->
getMethod($methodName);
if (!\
in_array($mutatorPrefix,
$this->arrayMutatorPrefixes, true
)) { return new PropertyWriteInfo(PropertyWriteInfo::TYPE_METHOD,
$methodName,
$this->
getWriteVisiblityForMethod($method),
$method->
isStatic());
} }