Scalr\Tests\Model\AbstractEntityTest::getCloudLocationEntity PHP Method

getCloudLocationEntity() private method

Creates entity
private getCloudLocationEntity ( string $id = null, string $cloudLocation = self::CL_NAME ) : Scalr\Model\Entity\CloudLocation
$id string optional uuid
$cloudLocation string optional
return Scalr\Model\Entity\CloudLocation
    private function getCloudLocationEntity($id = null, $cloudLocation = self::CL_NAME)
    {
        //Create test cloud location
        $cl = new CloudLocation();
        $cl->cloudLocationId = $id ?: self::CL_LOC_ID;
        //Platform,url,cloudLocation is unique key
        $cl->platform = self::CL_PLATFORM;
        $cl->url = self::CL_URL;
        $cl->cloudLocation = self::CL_NAME;
        return $cl;
    }