src/services/People.php
public static function findByResource($resourceName, $optParams=[])
    {
        $optParams = ($optParams) ? $optParams : [
            'personFields' => self::$personFields,
        ];
        
        self::$person = self::getService()->people->get($resourceName, $optParams);
        
        self::$resourceName = $resourceName;
        
        return new self;
    }
public static function findByResource($resourceName, $optParams=[])
    {
        $optParams = ($optParams) ? $optParams : [
            'personFields' => self::$personFields,
        ];
        
        self::$person = self::getService()->people->get($resourceName, $optParams);
        
        self::$resourceName = $resourceName;
        
        return new self;
    }
public static function findByResource ( $ resourceName , $ optParams = [ ] ) { $ optParams = ( $ optParams ) ? $ optParams : [ 'personFields' => self :: $ personFields , ] ; self :: $ person = self :: getService ( ) -> people -> get ( $ resourceName , $ optParams ) ; self :: $ resourceName = $ resourceName ; return new self ; }
find a contact to cache

@param string $resourceName The resource name of the contact.
@param array $optParams
@return self
find a contact to cache