public function validatePropertyVisibility($visibility)
    {
        if (!in_array($visibility, $this->propertyVisibilities)) {
            throw $this->getException(
                'The property visibility isn\'t valid ("%s" given, expecting one of following: %s)',
                [$visibility, implode(', ', $this->propertyVisibilities)]
            );
        }

        return $visibility;
    }