src/Factory/LibraryFactory.php
public static function createFromAPIResponse(array $response)
    {
        $library = new Library();

        $library
            ->setId($response['id'])
            ->setName($response['name'])
        ;

        return $library;
    }
public static function createFromAPIResponse(array $response)
    {
        $library = new Library();

        $library
            ->setId($response['id'])
            ->setName($response['name'])
        ;

        return $library;
    }
@param array $response

@return Library