models/Team.php
public function getMatches()
    {
        $matches = ArrayHelper::merge($this->homeMatches, $this->awayMatches);
        ArrayHelper::multisort($matches, 'date', SORT_ASC);
        return $matches;
    }
public function getMatches()
    {
        $matches = ArrayHelper::merge($this->homeMatches, $this->awayMatches);
        ArrayHelper::multisort($matches, 'date', SORT_ASC);
        return $matches;
    }
public function getMatches ( ) { $ matches = ArrayHelper :: merge ( $ this -> homeMatches , $ this -> awayMatches ) ; ArrayHelper :: multisort ( $ matches , 'date' , SORT_ASC ) ; return $ matches ; }
Get all matches
@return array
Get all matches