protected getBitForAttribute ( string $attribute ) : integer | ||
$attribute | string | |
return | integer |
protected function getBitForAttribute($attribute)
{
$bit = MBString::array_change_key_case($this->getOptions()['typeMap'])[MBString::strtolower($attribute)];
$bit = in_array($this->getAttribute(), $this->getOptions()['types']['type']) ? -1 * abs($bit) : $bit;
return $bit;
}