Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Command.php
Show All 37 Lines | abstract class Command extends \Illuminate\Console\Command | ||||
* @return \App\Domain|null | * @return \App\Domain|null | ||||
*/ | */ | ||||
public function getDomain($domain, $withDeleted = false) | public function getDomain($domain, $withDeleted = false) | ||||
{ | { | ||||
return $this->getObject(\App\Domain::class, $domain, 'namespace', $withDeleted); | return $this->getObject(\App\Domain::class, $domain, 'namespace', $withDeleted); | ||||
} | } | ||||
/** | /** | ||||
* Find a group. | |||||
* | |||||
* @param string $group Group ID or email | |||||
* @param bool $withDeleted Include deleted | |||||
* | |||||
* @return \App\Group|null | |||||
*/ | |||||
public function getGroup($group, $withDeleted = false) | |||||
{ | |||||
return $this->getObject(\App\Group::class, $group, 'email', $withDeleted); | |||||
} | |||||
/** | |||||
* Find an object. | * Find an object. | ||||
* | * | ||||
* @param string $objectClass The name of the class | * @param string $objectClass The name of the class | ||||
* @param string $objectIdOrTitle The name of a database field to match. | * @param string $objectIdOrTitle The name of a database field to match. | ||||
* @param string|null $objectTitle An additional database field to match. | * @param string|null $objectTitle An additional database field to match. | ||||
* @param bool $withDeleted Act as if --with-deleted was used | * @param bool $withDeleted Act as if --with-deleted was used | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |