openstackweb/jobs/code/model/JobMainInfo.php
2014-10-31 16:21:41 -03:00

116 lines
2.3 KiB
PHP

<?php
/**
* Copyright 2014 Openstack.org
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**/
/**
* Class JobMainInfo
*/
final class JobMainInfo {
/**
* @var string
*/
private $title;
/**
* @var Company
*/
private $company;
/**
* @var string
*/
private $url;
/**
* @var string
*/
private $description;
/**
* @var string
*/
private $instructions_2_apply;
/**
* @var DateTime
*/
private $expiration_date;
/**
* @var string
*/
private $location_type;
/**
* @param string $title
* @param Company $company
* @param string $url
* @param string $description
* @param string $instructions_2_apply
* @param string $location_type
* @param DateTime $expiration_date
*/
public function __construct($title, $company, $url, $description, $instructions_2_apply, $location_type, $expiration_date = null){
$this->title = $title;
$this->company = $company;
$this->url = $url;
$this->description = $description;
$this->instructions_2_apply = $instructions_2_apply;
$this->location_type = $location_type;
$this->expiration_date = $expiration_date;
}
/**
* @return string
*/
public function getTitle(){
return $this->title;
}
/**
* @return Company
*/
public function getCompany(){
return $this->company;
}
/**
* @return string
*/
public function getUrl(){
return $this->url;
}
/**
* @return string
*/
public function getDescription(){
return $this->description;
}
/**
* @return string
*/
public function getInstructions(){
return $this->instructions_2_apply;
}
/**
* @return string
*/
public function getLocationType(){
return $this->location_type;
}
/**
* @return DateTime|null
*/
public function getExpirationDate(){
return $this->expiration_date;
}
}