public function getRecommendations()
    {
        if (null !== $this->recommendations) {
            return $this->recommendations;
        }

        if (null === $this->data) {
            $this->initializeProfile();
        }

        if (!isset($this->data['recommendations']['tests'])) {
            return $this->recommendations = array();
        }

        $this->recommendations = array();
        foreach ($this->data['recommendations']['tests'] as $test) {
            $this->recommendations[] = new Test($test['name'], $test['state'], isset($test['failures']) ? $test['failures'] : array());
        }

        return $this->recommendations;
    }
public function getRecommendations()
    {
        if (null !== $this->recommendations) {
            return $this->recommendations;
        }

        if (null === $this->data) {
            $this->initializeProfile();
        }

        if (!isset($this->data['recommendations']['tests'])) {
            return $this->recommendations = array();
        }

        $this->recommendations = array();
        foreach ($this->data['recommendations']['tests'] as $test) {
            $this->recommendations[] = new Test($test['name'], $test['state'], isset($test['failures']) ? $test['failures'] : array());
        }

        return $this->recommendations;
    }
public function getRecommendations ( ) { if ( null !== $ this -> recommendations ) { return $ this -> recommendations ; } if ( null === $ this -> data ) { $ this -> initializeProfile ( ) ; } if ( ! isset ( $ this -> data [ 'recommendations' ] [ 'tests' ] ) ) { return $ this -> recommendations = array ( ) ; } $ this -> recommendations = array ( ) ; foreach ( $ this -> data [ 'recommendations' ] [ 'tests' ] as $ test ) { $ this -> recommendations [ ] = new Test ( $ test [ 'name' ] , $ test [ 'state' ] , isset ( $ test [ 'failures' ] ) ? $ test [ 'failures' ] : array ( ) ) ; } return $ this -> recommendations ; }
Returns recommendations associated with this profile.

@return Test[]
Returns recommendations associated with this profile .