This is a static method. It should be the first in the class, before non-static methods. i.e. getIdFromCookieValue should appear before __construct.