<?php

/**
 * Location
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
class Location extends PluginLocation {
	
	const NO_OF_RECORDS_PER_PAGE = 50;

	public function getCountryName() {
		return ucwords(strtolower($this->getCountry()->getName()));
	}
	
	public function getNumberOfEmployees() {
		
		$locationService = new LocationService();
		return $locationService->getNumberOfEmplyeesForLocation($this->id);
	}

}
