Remove unrequire parameters on constructur and fixed error on phpdoc.