Im new to OOP but Im getting there quite fast. 

I have a class with a single method for connecting to an api. I have another class with various methods containing the various endpoint and queries I use with this api. 

I want to be able to only have to call the first class once and use the methods from that class within the variables class rather than call the class inside each method over and over. 

For example:

At the moment Im doing this.

```
class classname
{
    public function name1
    {
        # some code
        $request = new someClassName();
        $var = $request->functionName();
    }

    public function name2
    {
        # some code

        $request = new someClassName();
        $var = $request->functionName();
    }
}

```

I want to achieve something like this:

```
class classname
{
    public $request = new someClassName();

    public function name1
    {
        # some code
        $var = $request->functionName();
    }

    public function name2
    {
        # some code
        $var = $request->functionName();
    }
}

```