protected function toJsonProperty($prop)
    {
        if ($prop instanceof Coveralls) {
            return $prop->toArray();
        }

        if (is_array($prop)) {
            return $this->toJsonPropertyArray($prop);
        }

        return $prop;
    }
protected function toJsonProperty($prop)
    {
        if ($prop instanceof Coveralls) {
            return $prop->toArray();
        }

        if (is_array($prop)) {
            return $this->toJsonPropertyArray($prop);
        }

        return $prop;
    }
protected function toJsonProperty ( $ prop ) { if ( $ prop instanceof Coveralls ) { return $ prop -> toArray ( ) ; } if ( is_array ( $ prop ) ) { return $ this -> toJsonPropertyArray ( $ prop ) ; } return $ prop ; }
Convert to json property.

@param mixed $prop

@return mixed
Convert to json property .