for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mpociot\Teamwork\Exceptions;
use RuntimeException;
class UserNotInTeamException extends RuntimeException
{
/**
* Name of the affected team.
*
* @var string
*/
protected $team;
* Set the affected team.
* @param string $team
* @return $this
public function setTeam($team)
$this->team = $team;
$this->message = "The user is not in the team {$team}";
return $this;
}
* Get the affected team.
* @return string
public function getTeam()
return $this->team;