Sanitizing and cleaning #38

Based on the tech/services branch

*Note*:
- Fixed a lot of phpdoc
- When checking the validity of Text::setCurrentLineNumber, I also tested that the number is strictly inferior to the number of lines.
How about handling the three cases separately? This way we could provide a helpful message.
Also: should Text have a `totalLineNumbers` private property?