public function deserialize(array $data, Theme $theme = null)
    {
        $theme = $theme ?: new Theme();

        $theme->setName($data['name']);

        // todo : update other themes props

        return $theme;
    }
public function deserialize(array $data, Theme $theme = null)
    {
        $theme = $theme ?: new Theme();

        $theme->setName($data['name']);

        // todo : update other themes props

        return $theme;
    }
public function deserialize ( array $ data , Theme $ theme = null ) { $ theme = $ theme ? : new Theme ( ) ; $ theme -> setName ( $ data [ 'name' ] ) ; // todo : update other themes props return $ theme ; }
Deserializes JSON api data into a Theme entity.

@param array $data  - the data to deserialize
@param Theme $theme - the theme entity to update

@return Theme - the updated theme entity
Deserializes JSON api data into a Theme entity .