Skip to content

Commit

Permalink
[Jobs] Allow using of alternate company name
Browse files Browse the repository at this point in the history
  • Loading branch information
TiSiE committed Oct 12, 2017
1 parent 41acfa8 commit ff7fd9d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions module/Jobs/src/Jobs/Entity/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,14 +402,16 @@ public function setTitle($title)
* Gets the name oof the company. If there is an organization assigned to the
* job posting. Take the name of the organization.
*
* (non-PHPdoc)
* @param bool $useOrganizationEntity Get the name from the organization entity, if it is available.
* @see \Jobs\Entity\JobInterface::getCompany()
* @return string
*/
public function getCompany()
public function getCompany($useOrganizationEntity = true)
{
if ($this->organization) {
if ($this->organization && $useOrganizationEntity) {
return $this->organization->getOrganizationName()->getName();
}

return $this->company;
}

Expand Down

0 comments on commit ff7fd9d

Please sign in to comment.