the method getByName doesn't need to be called with late static binding keyword 'static'
fixed typo in phpdoc