In any category, if and has the LLP wrt , then is a retract of . Dually, if has the RLP wrt , then is a retract of .
This implies that a map is a cofib (trivial cofib) iff it has the LLP wrt all trivial fibs (fibs), and the dual statement.
nLab page on Retract argument