/** * @param bool $present * @param string $identifier * @return $this */ protected function toggleAclPresent($present, $identifier) { if ($present) { $this->controlFlags->add(ControlFlags::FLAG[$identifier . 'ACL_PRESENT']); } else { $this->controlFlags->remove(ControlFlags::FLAG[$identifier . 'ACL_PRESENT']); } return $this; }