Use inheritDoc blocks
Minor SQL security check
Move check method into the base class