/** * Constructor * * @param string $agency - The route tag * @param array $routeInfo - An array of Route objects */ public function __construct(Agency $agency, array $routeInfo) { parent::__construct(self::TABLE); $this->agency = $agency; $this->updateInfo = $routeInfo; }
/** * Constructor * * @param Route $route * @param Array $directionInfo - Array of direction objects (key is the direction tag) */ function __construct($route, $directionInfo) { parent::__construct(self::TABLE); $this->route = $route; $this->updateInfo = $directionInfo; }