def METHOD_NAME(self, cmd):
    """
    Check is binary path is defined in composer.json bin property.
    Loading a linter to check its own source code is a special case.
    For example, the local phpcs binary when linting phpcs is
    installed at ./scripts/phpcs and not ./vendor/bin/phpcs
    This function checks the composer.json `bin` property keys to
    see if the cmd we're looking for is defined for the current
    project.
    """
    pkg = self.get_manifest()
    if 'bin' in pkg:
        for executable in pkg['bin']:
            if cmd in executable:
                return executable
    return None