public function findByName($name)
    {
        return $this->filter(function (Contract $stat) use ($name) {
            return $stat->getSkill()->getName() === $name;
        })->first();
    }
public function findByName($name)
    {
        return $this->filter(function (Contract $stat) use ($name) {
            return $stat->getSkill()->getName() === $name;
        })->first();
    }
public function findByName ( $ name ) { return $ this -> filter ( function ( Contract $ stat ) use ( $ name ) { return $ stat -> getSkill ( ) -> getName ( ) === $ name ; } ) -> first ( ) ; }
Find a stat by the given skill name

@param $name
@return \Burthorpe\Runescape\RS3\Stats\Contract|null
Find a stat by the given skill name