lib/TheTwelve/Foursquare/ApiGatewayFactory.php
public function getCheckinsGateway($userId = null)
    {

        $gateway = new CheckinsGateway($this->httpClient);
        $this->injectGatewayDependencies($gateway, $userId);
        return $gateway;

    }
public function getCheckinsGateway($userId = null)
    {

        $gateway = new CheckinsGateway($this->httpClient);
        $this->injectGatewayDependencies($gateway, $userId);
        return $gateway;

    }
public function getCheckinsGateway ( $ userId = null ) { $ gateway = new CheckinsGateway ( $ this -> httpClient ) ; $ this -> injectGatewayDependencies ( $ gateway , $ userId ) ; return $ gateway ; }
factory method for checkins gateway
@param string|null $userId
@return \TheTwelve\Foursquare\UsersGateway
factory method for checkins gateway