$publicationLanguageCode should be $publicationLanguage, and instantiation should go with capital to match class name: new Language()