public static function factory($rawFeed)
    {
        $repository = new static;
        $skills     = new SkillsRepository();

        $exploded = explode("\n", $rawFeed);

        $spliced = array_splice(
            $exploded,
            0,
            $skills->count()
        );

        for ($id = 0; $id < count($spliced); $id++) {
            list($rank, $level, $experience) = explode(',', $spliced[$id]);
            $skill                           = $skills->find($id);

            $repository->push(
                new Stat(
                    $skill,
                    $level,
                    $rank,
                    $experience
                )
            );
        }

        return $repository;
    }
public static function factory($rawFeed)
    {
        $repository = new static;
        $skills     = new SkillsRepository();

        $exploded = explode("\n", $rawFeed);

        $spliced = array_splice(
            $exploded,
            0,
            $skills->count()
        );

        for ($id = 0; $id < count($spliced); $id++) {
            list($rank, $level, $experience) = explode(',', $spliced[$id]);
            $skill                           = $skills->find($id);

            $repository->push(
                new Stat(
                    $skill,
                    $level,
                    $rank,
                    $experience
                )
            );
        }

        return $repository;
    }
public static function factory ( $ rawFeed ) { $ repository = new static ; $ skills = new SkillsRepository ( ) ; $ exploded = explode ( "\n" , $ rawFeed ) ; $ spliced = array_splice ( $ exploded , 0 , $ skills -> count ( ) ) ; for ( $ id = 0 ; $ id < count ( $ spliced ) ; $ id ++ ) { list ( $ rank , $ level , $ experience ) = explode ( ',' , $ spliced [ $ id ] ) ; $ skill = $ skills -> find ( $ id ) ; $ repository -> push ( new Stat ( $ skill , $ level , $ rank , $ experience ) ) ; } return $ repository ; }
Creates an \Burthorpe\Runescape\RS3\Stats\Repository instance from a raw feed directly from Jagex

@param $rawFeed string Raw feed directly from Jagex
@return \Burthorpe\Runescape\RS3\Stats\Repository
Creates an \ Burthorpe \ Runescape \ RS3 \ Stats \ Repository instance from a raw feed directly from Jagex