Back to ExtensionDiscoverCommand class

Method getNote

public string
getNote
(int $count)
Used for finding the text for the note
Parameters
  • int $count The count of installed Extensions
Returns
  • string The text for the note
Since
  • 4.0.0

Method getNote - Source code

/**
 * Used for finding the text for the note
 *
 * @param   int  $count   The count of installed Extensions
 *
 * @return  string  The text for the note
 *
 * @since   4.0.0
 */
public function getNote(int $count) : string
{
    if ($count < 1) {
        return 'No extensions were discovered.';
    } elseif ($count === 1) {
        return $count . ' extension has been discovered.';
    } else {
        return $count . ' extensions have been discovered.';
    }
}