common/services/traits/base/NameTypeTrait.php
public function getFirstByNameType( $name, $type, $config = [] ) {

		$modelClass = static::$modelClass;

		return $modelClass::findFirstByNameType( $name, $type, $config );
	}
public function getFirstByNameType( $name, $type, $config = [] ) {

		$modelClass = static::$modelClass;

		return $modelClass::findFirstByNameType( $name, $type, $config );
	}
public function getFirstByNameType ( $ name , $ type , $ config = [ ] ) { $ modelClass = static :: $ modelClass ; return $ modelClass :: findFirstByNameType ( $ name , $ type , $ config ) ; }
Useful for models having unique name for type.
Useful for models having unique name for type .